This section of the literal Geneva Convention [1], which Israel is a signatory of [2] seems rather relevant. While this article's breakdown of the what's and how's is quite interesting, keeping international law in mind while talking about the attack seems important. - "2. It is prohibited to use booby-traps or other devices in the form of apparently harmless portable objects which are specifically designed and const…
Not taking sides on the attack, but, wow, you ommited half the text - important in this context: "unless either: (a) they are placed on or in the close vicinity of a military objective; or (b) measures are taken to protect civilians from their effects, for example, the posting of warning sentries, the issuing of warnings or the provision of fences."
Regarding anything Israel/Palestine related, nuance and good faith left the chat a long time ago.