Warshaw’s ad was produced by the same firm that made ads for Zohran Mamdani, the assemblyman who was unexpectedly chosen by Democrats as their nominee in the race for New York City mayor in June.