GAZA CITY — The tumult roiling the Arab world had already severed the lifeline between the Palestinian militant group Hamas and two of its most important patrons, Iran and Syria.