Note the title of the AP article you linked is “Israeli forces shell UN headquarters in Gaza” and not “HAMAS militants use UN compound to fire at Israeli forces who return fire shell UN headquarters in Gaza”
We don’t learn that part until the 5th paragraph. No one is asking HAMAS for an apology, BTW.
Excellent point. The title implies that the Israelis brazenly attacked the UN HQ without provocation.