You mean like the murder of American Rachel Corrie by the IDF which was ruled an "accident" absolving it of all responsibility?
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.