Ban expressed " outrage" over the bombing on the compound, which was housing hundreds of refugees at the time. He said Israeli Defense Minister Ehud Barak told him there had been a " grave mistake" and promised to pay extra attention to protecting UN installations.
Even as a top Israeli envoy went to Egypt to discuss a cease-fire proposal, the military pushed farther into Gaza in an apparent effort to step up pressure on Hamas. Ground forces thrust deep into a crowded neighborhood for the first time, sending terrified residents fleeing for cover. Shells also struck a hospital, five high-rise apartment buildings and a building housing media outlets in Gaza City, injuring several journalists.
Bullets also entered another building housing The Associated Press offices, entering a room where two staffers were working but wounding no one. The Foreign Press Association, representing journalists covering Israel and the Palestinian territories, demanded a halt to attacks on press buildings.
The Israeli army had collected the locations of media organizations at the outset of fighting to avoid such attacks.
Israel launched its war on Dec. 27 in an effort to stop militant rocket fire from Gaza that has terrorized hundreds of thousands of Israelis. Over 1,100 Palestinians have been killed, roughly half of them civilians, according to UN and Palestinian medical officials. Gaza health official Dr. Moaiya Hassanain said at least 50 people were killed throughout Gaza on Thursday.
Thirteen Israelis also have been killed since the campaign began. Israel says it will press ahead until Hamas halts the rocket fire and stops smuggling weapons into Gaza from neighboring Egypt.
Israeli envoy Amos Gilad traveled to Cairo on Thursday to discuss truce prospects with Egypt, which has been serving as the key mediator. His departure, delayed for several days, was seen as a sign of progress in the truce talks. Israel also sent a senior diplomat to Washington to discuss international guarantees that Hamas will not rearm.
Israeli government spokesman Mark Regev said there was "momentum" in negotiations and Israel was hopeful that a deal on its terms was "close and attainable."
Barak, visiting soldiers on a southern base, said the fighting would continue, but Israel's eyes were "also open to the possibility of winding up this operation and consummating Israel's exceptional results and accomplishments through diplomacy."
Ban, who arrived in Israel on Thursday morning from Egypt, said he was "outraged" by the attack on the UN headquarters.
"I conveyed my strong protest and outrage to the defense minister and foreign minister and demanded a full explanation," Ban said in Tel Aviv.
The UN compound houses the UN Works and Relief Agency, which distributes food aid to hundreds of thousands of destitute Gazans in the tiny seaside territory of 1.4 million people.
It had only that morning become a makeshift shelter for 700 Gaza City residents seeking sanctuary from relentless Israeli shelling, UN officials in Gaza said.
John Ging, director of UNRWA operations in Gaza, said the attack at the compound caused a "massive explosion" that wounded three people.
Shells first hit the courtyard where the refugees had taken refugees, then struck garages and the UN's main warehouse, sending thousands of tons of food aid up in flames, Ging said. Later, fuel supplies went up in flames, sending a thick black plume of smoke into the air.
"It's a total disaster for us," Ging said, adding that the UN had warned the Israeli military that the compound was in peril from shelling that had begun overnight. UN officials say they have provided Israel with GPS coordinates of all UN installations in Gaza to prevent such attacks.
The refugees were moved to a school away from the immediate fighting, he said.
Separately, Israel shells landed next to a UN school in another Gaza City neighborhood, wounding 14 people who had sought sanctuary there, medics and firefighters said.
An Israeli attack near a UN school in northern Gaza earlier this month killed nearly 40 people. At the time, Israel said militants had fired on army positions from the beginning.
Earlier Thursday, thousands of residents fled their homes with the advance of Israeli ground troops into Gaza City's Tel Hawwa neighborhood. Many were clad only in their pajamas, and some were wheeling elderly parents in wheelchairs, one of them with an oxygen tank. Others stopped journalists' armored cars and ambulances pleading for someone to take them to a UN compound or to relatives' homes.
Rasha Hassam, a 25-year-old engineer, ran out of her apartment building carrying her screaming, crying, 6-year-old daughter, Dunia.
"God help us, God help us, where can we flee?" she cried. "All I want is to get my poor child away from here. We want to survive."
Thousands of others were trapped in Tel Hawwa's high-rise buildings by the fire, too afraid to even attempt to flee.
Three shells hit the Al Quds hospital in the neighborhood, setting its pharmacy building ablaze, trapping about 400 patients and staff inside the main hospital building, said Khaled Abu Zeid, a medic inside the building reached on his mobile phone. Gunfire was also reported around the building. It was not clear how many people inside had been wounded in the fighting.
In the nearby downtown area, Israeli tanks fired shells at five high-rise buildings, Palestinian witnesses said.
Israeli defense officials said the intensified assault on Gaza City was not a prelude to a new phase of all-out urban warfare in the narrow alleyways of Gaza's big cities. The aim, they said, was to heat up the pressure on Hamas to accede to Israel's demands.
"I think Israel is seeking in the last moments to escalate the military operation to pressure the parties," said Ghazi Hamad, a Hamas official. "I don't think this will change the issues on the table."
The intensified assault on Gaza City highlighted the urgency of diplomatic efforts, the most high-profile being the arrival in the region of Ban, who was meeting with Israeli and Palestinian leaders on Thursday. Last week, the UN Security Council passed a cease-fire resolution that Israel have ignored.
Ban met on Thursday with Israeli Foreign Minister Tzipi Livni and afterward put the onus on the Israeli government.
"We have some elements now in place which may allow a cease fire to come fairly soon," he told a news conference in Tel Aviv. "I hope so, but that depends on the political will of the Israeli government."
He said a full-fledged truce agreement did not have to be worked out before violence ceased.
"You can discuss terms and conditions later, my demand is to cease firing immediately," he said, acknowledging that he had come "with a heavy heart" at what he called a "difficult time for Israel."
"I'm well aware that rockets have been fired at Israeli civilians for years from Gaza," he said. "I have always condemned these as acts of terrorism and said they must cease."
Rocket fire has fallen off dramatically but not ceased and on Thursday the military reported 14 firings.
Ban will also meet with Palestinian leaders in the West Bank, where Western-backed President Mahmoud Abbas governs. He will not visit Gaza, which has been ruled by Hamas since it expelled forces loyal to Abbas in June 2007. The international community does not recognize Hamas' government.













