Which Hamas knows. Why do you think that’s contradictory? If your “ally” is about to make peace, that’s the last thing you want. Plus, Netanyahu has been at war with the Israeli military for a while, so surprise! https://www.independent.co.uk/news/world/middle-east/israel-palestine-hamas-attack-b2425819.html