The New York Police Department is investigating after a police scanner recorded someone encouraging violence against protesters.