Man was being detained at Kmart when he threatened to stab loss prevention worker, police say