That's like planting a bomb in front of a military camp. You might have a target, but in the end you just kill whoever was nearby at that time. In the case of the pager attack, that includes children aged 11 and 12, as well as a nurse.
That's much closer to a terrorist attack than to legal warfare.