The history of Palestine is super messy. All sides have committed terrible acts to the other, coming back hundreds of years. Each side can always look at recent history and claim X has provoked Y or Y has caused a disaster on X.
You can claim this was a provoked attack. I for once can hardly justify an attack on civilians. You can argue, Israel has done worse in the past, and while each side is biased, perhaps you’d be right.
My point is. This is an endless discussion
Both sides are bad. IMO the best outcome at the moment is to stop the conflict as soon as possible