New York City mayoral candidate Zohran Mamdani faced threats directly to him and to his campaign in June, according to a senior law enforcement official.