Most Israelis are IDF members due to the requirement for mandatory military service so almost all areas in Israel are valid military targets.
By that same rationale you'd justify blowing up schools. I don't find that to be a good enough argument to deliberately target civilian infrastructure. But if you do, then it justifies the US and Israel too.
[1] https://www.france24.com/en/middle-east/20260403-iran-guards...