The Israeli prime minister defended his country’s actions in Gaza and Iran—and lashed out at Mamdani.