Yes, international law establishes the legality of actions which accidentally result in fatalities. I'm not sure how that is relevant to intentional killings by Hamas though
And thus we are in agreement: collateral damage is incidental to achieving a strategic goal.