Israel’s offensive against Hezbollah and the cease-fire to stop the fighting in Lebanon have left Hamas increasingly isolated.