A shoplifter accused of stealing from Newmarket's TK Maxx threatened to kill the store’s security guard, Ipswich Crown Court has heard.