I don't believe that - in my opinion, the school was deliberately targeted because the students studying there were mostly the children of Iranian military officials. Iran's military (surprisingly) has behaved in a very restrained manner in the last 2 years against Israel (and US), possibly on the advise of Russia and China, and that is why Israel and US have not been able to galvanise much international support for their aggression against Iran. The deliberate assassination of the Ayatollah (a religious muslim leader, who was 87+ years and soon to be replaced by the Iranians themselves) and targeted slaughter of the children of Iranian military officials is meant to provoke Iranians and Shia muslims elsewhere to commit acts of terrorism against the US and Israel. Then international outrage can be whipped up by the western media and NATO can be bulldozed to join the war and send soldiers into Iran.
The children of soldiers are not legitimate military targets.
> ... in my opinion, the school was deliberately targeted because the students studying there were mostly the children of Iranian military officials. ...
Your opinion is wrong. There is no possibility of that being the justification for choosing a target. The American armed forces are too professional to do such a thing. Terror is not in our toolbox.
Americans and Europeans are in general, good people. But their political leaders, not so much. And this war is being run by a genocidal regime in Israel and the Trump administration. Moral values are the least of their concern ... (Also, I suspect the Israel regime of being the brains behind this attack. Hegeseth, the current Secretary of "war" is also a known muslim-hater, who wouldn't have been hard to persuade.).