A man who stabbed a police commander and police administrator to death at their home in a Paris suburb pledged loyalty to the leader of the Islamic State (IS) group and had a list of other targets, including rappers, journalists, police officers, and public officials, the Paris prosecutor said.