GAZA CITY, Gaza Strip (AP) -- The ouster of Egyptian President Mohammed Morsi has delivered a sharp jolt to Gaza's Hamas rulers, robbing them of their most important ally and raising difficult questions about the future of Islamic political movements in the region.
On Friday, Hamas Prime Minister Ismail Haniyeh said he is "monitoring developments" in Gaza's larger neighbor, and is hopeful relations will endure despite the crisis.
"We are not afraid of losing our cause, no fear that our cause will be absent from the Islamic nation's agenda, despite the difficulties and hard circumstances that sometimes the Islamic nation faces," Haniyeh said at Friday prayers.
Earlier in the day, Egypt shut its border crossing with the territory, citing security concerns after suspected Islamic militants attacked four sites in the northern Sinai Peninsula. One soldier was killed and three were wounded. Some 200 Palestinians were turned back to Gaza after the order.
Jittery Hamas officials in Gaza have been otherwise quiet as they tried to adjust to the new reality. But it appeared likely that after making important gains over the past year, their group will see its regional standing weakened, at least in the short term. The rival Palestinian movement Fatah, which lost control of Gaza to Hamas six years ago, welcomed the changes in Egypt.
"I am sure that Hamas is carefully considering every move and every word. This is a strike at the heart of the experience of the Muslim Brotherhood in power," said Atef Ahmad, a Gaza political analyst. "Hamas is now in a difficult situation."
Relations with Egypt are critical to Gaza. Gaza shares a border with Egypt and shares important cultural ties with its larger neighbor, which controlled the seaside strip before it was captured by Israel in the 1967 Mideast war. Israel and Hamas are bitter enemies, so Egypt is the primary gateway for Gazans to leave the territory. Egypt is also a key supplier of goods, ranging from fuel to building materials to cars and foods, much of it through an illicit system of smuggling tunnels along the border.
The streets of Gaza were quiet on Thursday, a vivid contrast to the wild celebrations that erupted just a year ago when Morsi won Egypt's first democratic election.
Shopkeepers were glued to TV and radio broadcasts from Egypt. Hamas' al-Aqsa TV station provided brief hourly updates about Egypt but otherwise ignored the situation, while Hamas supporters posted Quranic verses about patience and victory on Facebook and other social media pages.
"I think that Egypt's relations with Gaza will be tepid for a short while, but will return back to normal," said Mustafa Sawaf, a pro-Hamas commentator. "The public interest requires a strong relationship between Gaza and Egypt."
Morsi and Hamas both come from the pan-Arab Muslim Brotherhood movement, and his victory was seen as a ringing endorsement of the group's rigid Islamist ideology. Morsi quickly ushered in an era of new relations with Hamas after years of strained ties with his predecessor, the longtime Egyptian ruler Hosni Mubarak.
While Mubarak limited contact with Hamas to security matters along the border, Morsi gave Hamas rulers VIP treatment. Hamas leaders were permitted to travel freely across the Egyptian border and were welcomed in Cairo as legitimate political rulers.
Morsi also eased some restrictions on travel of everyday people in and out of Gaza, and personally sponsored a cease-fire last November between Israel and Hamas after eight days of heavy fighting. In a show of solidarity, Morsi sent his prime minister to Gaza during the fighting.
Not everything that Morsi did was to Hamas' liking, however. He carefully preserved Egypt's 1979 peace treaty with Israel, despite his personal hostility toward the Jewish state. And in recent weeks, Egyptian forces have cracked down on the smuggling tunnels to contain militant groups operating in the area. The crackdown has resulted in shortages of certain key goods, including fuel and cement.
Nonetheless, Morsi, as leader of the Arab world's largest and most powerful nation, was widely seen as a friend to Gaza and an important symbol of hope that Islamist groups would spread their influence across the region in the wake of the Arab Spring uprisings.
Late Wednesday, the Egyptian military toppled Morsi, saying it had acted in the name of millions of Egyptians who believed that Morsi had warped the democratic process and abused his power. The crackdown continued Thursday with the arrests of top Muslim Brotherhood figures, including its supreme leader.
Everyday Gazans greeted the news of Morsi's downfall with a mixture of resignation and trepidation.