While technically correct, I would still refrain from calling an attempted eradication a war.
Just going to once again plug that Hamas is the name of the publicly elected government of the territories of Palestine, elected in 2006 to help restore order after the third-to-last "war" with Israelis.
That war hasn't been won yet. And by that I mean - I would refer to the battle as between oppressors and libertarians