The problem here and whilst I do disagree with it is that Hamas is not seen as a conventional combatant, therefore the conventional rules of war need not apply to them.
There is however a clear and legal distinction between targeting of combatants uniformed or otherwise and the indiscriminate targeting of civilian and protected infrastructure which is in contravention of rules of armed conflict;
View attachment 10860
View attachment 10861
Furthermore Rule 4 of IHL prohibits targeting of civilians, medical professionals and certain buildings:
View attachment 10862View attachment 10863View attachment 10864View attachment 10865