Israel is an occupying force, and under international law, Hamas can fight back against it. Maybe if the Jews returned home, there would be peace in the region.
But maybe you thought the French resistance shouldn't have fought against the occupying nazi forces during WWII.
I mean, I do get where you are coming from since the Iraqis of Afghanis who didn't want the USA occupying their land were also called terrorists by the occupiers.