The NYT had some good reporting on this, and you can see how the mistake was made. The elementary school used to be part of the IRGC base until 2016. Then it was fenced off and made an elementary school. The “shooter” (in this case, the USA) had a duty to check that the target was currently a valid military target. This verification, if it was done at all, was clearly the problem.
I’m sure you have someone directly responsible for this mistake who is going to have a hard time living with themselves. But like I said, starting a war leads to inevitable tragedy, and I doubt the people who are indirectly responsible will ever recognize their culpability in this.