nostr:npub1hpcdfjpxrawnmu6ryh36ce7xu4qd54pu6xca394yhvmyzlery0tqvghjn3 One thing to consider is funding. In the past, Hamas has done smaller-scale stuff of this nature when they've been cut off by one country or another, in a bid to get someone to pay them to stop, basically. This happened after Iran cut ties when Hamas backed Sunni rebels in Syria, for example, and Egypt eventually bribed them to stop.
Alternatively, a financial backer could have persuaded them to attack as part of some larger geopolitical "chess", but only Putin would be that stupid.