All of the arguments I've seen supporting this attack focus on the idea that it's fine to kill and maim civilians including children as long as you will probably get some combatants. It's a little bit open to interpretation, I guess, and I'm not a legal expert so fine, ok.
But booby trapping mundane daily objects accessible to non-combatants is a clear violation of international law. No real room for leeway or interpretation on that one either.
It's not really a "mundane daily object" though. It's a communications device that's issued to people on the Hezbollah private communications network. It's only accessible to non-combatants if they are (1) in the Hezbollah hierarchy in a non-combatant role, or (2) the person with the pager was exercising poor operational security and letting someone else handle their pager.
The prohibitions on booby-traps are that they're indiscriminant, not that they involve mundane objects.
I totally get the instinct to condemn the attack, since it's truly, deeply viscerally horrifying (not to mention terrifying!), but most of the rules about how you're supposed to conduct war basically boil down to 1. Make a reasonable effort to avoid disproportionately harming civilians 2. Don't go out of your way to inflict pain and suffering on your enemy beyond what's a necessary part of trying to kill or neutralize them 3. If your enemy is completely at your mercy, you have an extra duty to uphold 1 and 2.
Again, the pager attack is new, unusual, and just very upsetting. But it harmed civilians at a remarkably low rate, and the method of harm wasn't meaningfully more painful than just shooting someone. It compares very favorably with just bombing people on every metric other than maybe how scary it is if you're a combatant.
What would you prefer? Israeli tanks blowing their way through families and bombing beirut to rubble to get at the Hezbolla terrorists? War was inevitable, the amazing actions of the mossad mitigated hundreds if not thousands of civilian casualties. What is your complaint, that they booby trapped the communications devices used exclusively by Hezbolla and not, i don't know, their kalashnikovs?
Don't hide behind technicalities of international law, tell me literally what else they could possibly have done with a better outcome. (please note in my world view, unlike many other people here, Israel rolling over and dying is not an acceptable solution)