The Israelis for their part have strict engagement protocols, although the cynic in me believes avoiding PR issues is at least as big of a factor as avoiding loss of life. From that realpolitik standpoint, they screwed up here.
The fact of the matter is - if you are part of violent protests, even if you are just sitting and waving a flag, you’re taking a risk.
The fact that the propaganda machine is now spinning is business as usual, sadly. And gets neither side closer to a resolution.