Zohran Mamdani’s wife provided illustration for essay by author who called Oct 7 ‘spectacular’ and attacked ‘Jewish supremacist vampires’