How is it an indiscriminate attack? It targeted Hezbollah operatives, not random Lebanese people.
For one it wasn't targeted, but either way, if it, as you claim, was targeted then it would be even worse because it's worse to kill and maim kids by targeting them than by being indifferent.
https://ihl-databases.icrc.org/en/customary-ihl/v1/rule71