Sure, but what better way to recruit new fighters?
This is the same play that al-Queda made on 9/11: they made the US severely overplay their hand with one egregious coordinated attack.
The US is still paying for that overzealous reaction 20 years later; there is a case to me made that ISIL wouldn’t have been the power that it became without the GWOT.
Hamas is trying to exploit the fact that they’ve made Palestinians a worldwide target with limited options: more desperate people without a future means Hamas is the only entity to turn to.