NEAR ISRAEL/ GAZA BORDER (CNN) -- After eight days of violence along Israel's border with Gaza and nearly 150 deaths -- the vast majority of them Palestinian -- a cease-fire was declared Wednesday.
The cease-fire, announced in a joint news conference in Cairo with U.S. Secretary of State Hillary Clinton and Egyptian Foreign Minister Mohamed Kamel Amr, took effect at 9 p.m. (1:00 Kansas time.)
Gazans took to the streets, firing their guns into the air in celebration of what they considered to be a victory over Israel's military.
The agreement calls for Israel to halt all acts of aggression on Gaza, including incursions and the targeting of people, according to Egypt's state news agency EGYNews. It was the November 14th assassination by Israeli forces of Ahmed al-Ja'abari, the head of Hamas' military wing, that ignited the fighting.
It also calls for the Palestinian factions to cease all hostilities from Gaza against Israel, including the firing of rockets and attacks on the border. Border crossings were to be opened Thursday night, and the movement of people and goods across them was to be eased, it said. The agreement came after a day of negotiations that included Clinton, Egyptian President Mohamed Morsy and Palestinian officials.
Israeli government spokesman Mark Regev said the agreement calls for "complete and total cessation of all hostile activity initiated in the Gaza Strip."
"For us, that's victory. That's what we wanted," he said.
There were early signs that it was not being fully observed, said a spokeswoman for the Israel Defense Forces. Within a few hours of the cease-fire announcement, five rockets had been fired from Gaza, Lt. Col. Avital Leibovich told CNN.
Deputy Foreign Minister Danny Ayalon, in an interview with CNN, put the number of rockets at 12.
But Israel's ambassador to the United States, Michael Oren, said that had been expected. "We assumed it would take a while for the cease-fire to take hold," he told CNN. "I understand now that it has taken hold. There hasn't been fire for a while and, of course, we are not firing, so there is a cease-fire."
Prime Minister Benjamin Netanyahu warned of possible additional military action if the cease-fire fails to lead to long-term security.
"But at this time, the right thing for the state of Israel is to exhaust this opportunity to obtain a long-term cease fire," he said.
Netanyahu said he agreed to Barack Obama's suggestion that he accept the cease-fire, and he thanked the U.S. president for his "unreserved support" of Israel's actions.
Israel launched its offensive eight days ago with a stated goal of ending the frequent rocket attacks on southern Israel from inside Gaza.
"Their attempts backfired against them," said Khaled Meshaal, a Hamas political leader. "They wanted to destroy the infrastructure of the resistance of Hamas. They claim they have done so, and they have not. They are bankrupt."
He cited Israel's destruction of buildings and killings that included civilians. "This is their accomplishment," he said. "They have nothing else to show. And our rockets continued to strike them until the last minute."
Israel will hold Hamas responsible for any attacks from Gaza, whether conducted by that organization or any others, Regev said. He said the agreement reflects that understanding.
As he was preparing to return to New York from Tel Aviv, U.N. Secretary-General Ban Ki-moon said late Wednesday his biggest concern was for the safety of civilians, "no matter where they are. Innocent people, including children, have been killed or injured on both sides. Families on both sides were forced to cower in fear as the violence raged around them."
He said that since November 14, more than 139 Palestinians had been killed, more than 70 of them civilians, and more than 900 were injured. In addition, some 10,000 Palestinians had lost their homes, he said, adding there was a critical need for humanitarian aid in the territory.
IDF's Leibovich dismissed such concerns. "There is no crisis in Gaza," she told CNN, adding that she had seen pictures Wednesday morning of markets filled with fresh produce. "I understand that some things are not convenient."
During the eight days of conflict, rocket fire has killed four Israeli civilians and wounded 219 other people, most of them civilians, three of them seriously, Ban said. In addition, one Israeli soldier was killed and 16 were wounded, one critically, he said.
In all, 1,456 rockets were estimated to have been fired from Gaza into Israel, with three long-range missiles hitting the outskirts of Jerusalem, a move he called "unprecedented."
Israeli forces have reported strikes on more than 1,450 targets in Gaza, Ban said. They targeted, but were not limited to, attacks on rocket-launching sites, military bases, police stations and tunnels along the border with Egypt, he said.
Hundreds of other buildings were hit, Ban said, adding that he condemned "indiscriminate rocket fire from Gaza into Israel," but also believed that the "excessive and disproportionate use of force that endangers civilian lives is intolerable."
Bus bombing shakes Tel Aviv Bus bombing shakes Tel Aviv
Interactive timeline of the conflictInteractive timeline of the conflict
Long-term solutions for Gaza and the Palestinians in general must be found, he said.
"Once calm is fully restored and the violence ends, a broader cease-fire will have to address all the underlying causes of conflict, including the full opening of crossings, Palestinian reconciliation and an end to weapons smuggling."
Regev said the deal calls for talks to begin Thursday on easing economic restrictions on Gaza.
"If the border is quiet, that enables us to be more forthcoming," he said.
Clinton, who shuttled among Israel, the West Bank and Egypt to help negotiate the deal, said the United States will continue to work with regional partners to implement and expand the agreement.
"For it to hold, the rocket attacks must end, a broader calm return," she said.
Obama spoke Wednesday morning with Morsy, thanking the Egyptian leader for his leadership in negotiating the cease-fire proposal.
As recently as Wednesday afternoon, Hamas officials had been calling for more strikes against Israel, while that country's military continued to press its campaign against what it said were suspected rocket-launching sites and "terrorist hideouts."
Eleven people died Wednesday in Gaza, according to the Hamas-run al-Aqsa television station, bringing the death toll in the Palestinian territory to 142 in eight days.
Five people died in Israel, and scores more were wounded -- including four soldiers hurt Wednesday in a mortar attack in the Eshkol region, the IDF said.
The cease-fire talks, held in the West Bank, Israel and Cairo, continued despite a lunchtime bus attack near the Defense Ministry headquarters in Tel Aviv. At least two bombs were planted on the bus, Israeli police spokesman Micky Rosenfeld said. One of the bombs exploded, blowing out the windows of the bus, he said.
Rosenfeld said 24 people were wounded, three of them seriously. Aviva Shemer with Ichilov Hospital said pedestrians were among the injured.
Police said they were seeking at least one and possibly two suspects.