if I remember correctly, there’s more to it - that particular UN building was not really “neutral” even though it was purported to be. The enemies of Israel were firing on Israel from within that building or right next to it. Using civilians as shields is a common tactic. Provocation occurred first; then Israel retaliated.