NEAR THE 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. (2 p.m. ET).
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 14 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