GAZA CITY, Gaza (CNN) -- Palestinian militants declared Sunday that they would stop attacks on Israel for a week, a statement that came hours after Israeli Prime Minister Ehud Olmert announced a unilateral cease-fire in the country's assault on Hamas in Gaza.



An Israeli soldier holds up an Israeli flag after leaving Gaza on Sunday.



The Palestinians demanded that Israel remove all troops from Gaza within the week, Hamas spokesman Ayman Taha said from Egypt.



The agreement appears to cover all Palestinian armed factions, not only Hamas.



"We in the Palestinian resistance movements announce a cease-fire in the Gaza Strip," Moussa Abu Marzouk, a senior Hamas official in Syria, said on Syrian TV. "And we demand that Israeli forces withdraw in one week and that they open all the border crossings to permit the entry of humanitarian aid and basic goods for our people in Gaza."



There is no mutual agreement between the Israelis and Palestinians -- each side has made its own unilateral declaration of a cease-fire.



Mahmoud Abbas, the president of the Palestinian Authority, called for the cease-fire to hold so aid could get into Gaza.  Watch how a family in Gaza is coping with the violence »



"We hope that it continues and that the situation calms down and that humanitarian aid delivery begins immediately to our people," he said at a summit in Egypt.  Watch how a reporter finds Gaza in chaos »



During 22 days of fighting, more than 1,200 people have died, all but 13 of them Palestinians.  Watch clean-up efforts in Gaza City »



The Palestinians and Israel continued to skirmish for several hours Sunday after Israel said it was stopping its offensive against Hamas. Palestinians fired at least 19 rockets into Israel on Sunday -- including at least two after the Palestinian cease-fire declaration, according to Israeli police spokesman Mickey Rosenfeld. At least three people were lightly wounded. Israeli military aircraft retaliated, firing missiles and destroying a rocket launcher, a military spokesman said.



Shortly before the rocket attacks, Palestinian gunmen opened fire on Israeli forces in northern Gaza, the military said. Troops returned fire.



Separately, Palestinian medical sources said 23 bodies were pulled from rubble in Gaza.    Watch doctors tend to wounded civilians »



Olmert said Sunday the Israeli offensive had achieved its goals but that the Israel Defense Forces reserved the right to respond to any Palestinian violence against Israelis.



"IDF forces are in the Gaza Strip and many other units, which are surrounding Gaza from all sides, are closely observing every corner and listening to every whisper, ready for any response that they might receive from their commanders if and when the violations continue, as they have this morning," he said at the start of the weekly Cabinet meeting, before the announcement of the Palestinian cease-fire.



Israel pulled some troops out of the Palestinian territory as it called a halt to its operation against Hamas, but others remained.



Israeli government spokesman Mark Regev told CNN they would be there for a matter of days, not weeks.



International leaders are in the region for talks on the crisis. Egyptian President Hosni Mubarak and French President Nicolas Sarkozy hosted a summit Sunday in the Red Sea resort of Sharm el-Sheikh, bringing together leaders from Europe and the Middle East.



Olmert told the gathering that, if the cease-fire holds, "the government of Israel has no intention to stay in the Gaza Strip. We are interested in leaving Gaza as soon as we can."



He said Israel would "continue to do whatever is possible to prevent the humanitarian crisis in Gaza," and expressed sorrow for the deaths of innocent civilians. "It wasn't our intention to fight them or to harm them, to hurt them or to shoot at them," he said.



German Premier Angela Merkel underscored the international community's preferred outcome in a news conference in Egypt: "The two-state solution is the only solution we have."



Israeli Prime Minister Ehud Olmert will meet the leaders of the UK, France, Germany, Italy, Spain and the
Did Israeli prime minister intend to hurt civilians? What was the number of rockets fired? What area needs aid? Who launched two rockets after cease-fire? According to CNN, who is covered by the cease-fire? What the the Israeli prime minister say about civilians? How many rickets where fired after the cease-fire was in place?
"It wasn't our intention 19 Gaza. Palestinians Hamas in Gaza. "It wasn't our intention to fight them or to harm them, to hurt them or to shoot at them," he said. at least 19
question: Did Israeli prime minister intend to hurt civilians?, answer: "It wasn't our intention | question: What was the number of rockets fired?, answer: 19 | question: What area needs aid?, answer: Gaza. | question: Who launched two rockets after cease-fire?, answer: Palestinians | question: According to CNN, who is covered by the cease-fire?, answer: Hamas in Gaza. | question: What the the Israeli prime minister say about civilians?, answer: "It wasn't our intention to fight them or to harm them, to hurt them or to shoot at them," he said. | question: How many rickets where fired after the cease-fire was in place?, answer: at least 19