Someone in the Iranian chain of command has to give the order to launch those missiles, but the IDF has just demonstrated that they will strike command level personnel wherever they might be found. I suspect that this was part of Israel’s calculation in assessing the odds of a counterstrike.
Purposely targeting a consulate is a crime and casus belli.