Things here are incredibly difficult to understand.
Attacking defenseless Israeli innocent citizens is distinct from causing problems for HAMAS and Palestine.
If you wish to explain why HAMAS killed innocent people because of the Israel and Palestine conflict, you probably didn't understand why, at the time, nearly no one supported the Palestinians and HAMAS publicly, including the Pakistani army and government.
The scenario might be different if the strike had only targeted the Israeli military, but when it targeted innocent Israeli citizens, everything is working against them.