If the effort of booby-trapping supplies of communications devices was certain enough that enemies combatants would be specifically targeted, why didn't they just stop the shipments? You need possession to plant the trap.
At the superficial level of the news reports about this event, booby-trapping incidental items to render life and limb across a wide field and a diffuse population doesn't sound like legitimate combat under civilized conduct in warfare; it sounds like text-book terrorism in the lexicon of the U.S.
In my view the crucial question for a society is how does action represent our values and sense of responsibility. In such regards, Israel is far gone off its reservation.
* A west-aligned country is at war with a terrorist organization which is part of the Russian-Iranian-North Korean axis of evil.
* A war which the terrorist organization started unprovoked
* The ally country conducts the most precise strike against militant combatants in history (also completely legal by my understanding of international rules of war)
* Your suggestion is that they should've confiscated their walkie talkies instead