Three members of an invading army were attacked and injured by defending forces.
I really don't see a problem here, save the invading soldiers weren't killed - a far better outcome.
Just as 2000 soldiers were killed in the act of attacking israeli civilians, a far better outcome would have been 10,000 killed and the whole of gaza flattened in time for winter.
Yes, genocide is the reason the defenders attack the invaders.
Genocide?
If the Israelis wanted to engage in genocide, they would line-up artillery pieces, hub to hub, all across the northern Gaza border, from east to west.
Then they would open fire, and continue to advance in file abreast, until they reached the southern Gaza border.
Smashing and destroying and killing everything in their path along the way.
Or they would be dropping Daisy Cutter -type bombs, cooking-down everything north-to-south, until there was nothing (and no one) left.
Or they would be herding Palestinians into Extermination Camps, and shoveling the corpses into the ground, or burning them.
The Israelis commit no genocide.
They DO contain a hopelessly hostile Enemy Population, residing on territory conquered from neighboring countries, after those neighbors attacked Israel.
And, of course, they are squeezing the Palestinians off what few slivers of land remain under Palestinian control - convincing them to leave, slowly but surely.
But the Israelis commit no genocide.