GAZA CITY, Gaza Strip (AP) — The Israeli military agreed to a U.N.-brokered five-hour ‘‘humanitarian’’ pause starting Thursday in its strikes on the Gaza Strip to allow Palestinians to restock food, water and other necessities, hours after an attack by an Israeli naval vessel killed four Palestinian boys playing on the beach.
In response to a call by the U.N., the military said in a statement Wednesday that it would hold its fire for five hours starting at 10:00 a.m. (0900 GMT, 5 a.m. EDT.) but warned it will retaliate ‘‘firmly and decisively’’ if Hamas or other militant groups launch attacks on Israel during that time. It also said residents of three Gaza neighborhoods asked Wednesday to evacuate their homes should be out by the time the pause expires.
U.N. deputy spokesman Farhan Haq told The Associated Press on Wednesday that Robert Serry, the U.N. special coordinator for the Middle East peace process, made the appeal for a ‘‘unilateral humanitarian pause’’ after talks with Israel’s Coordination Office for Government Affairs in the (Palestinian) Territories.
The announcement came after a day of Israeli airstrikes and Palestinian militant rocket attacks as Hamas formally rejected a cease-fire proposal that had been accepted by Israel to end the 9-day-old conflict that officials say has left at least 213 Palestinians and one Israeli dead.
The four boys, who were cousins and ages 9 to 11, were killed Wednesday while playing on a beach off a coastal road west of Gaza City, said Ashraf al-Kidra, a Palestinian health official. Seven others — adults and children — were wounded in the strike, which Palestinian human rights activist Khalil Abu Shamala said came from an Israeli naval vessel operating offshore.
On the beach, a witness, who identified himself only as Abu Ahmed, said the boys were scavenging for scrap metal when a first shell hit a shipping container used in the past by the Hamas security forces.
He said the boys fled. The second rocket ‘‘hit all of them,’’ he said.
Mobile phone video circulated on Facebook showed the small bloodied bodies lying in the sand. One tiny corpse, lying face down, was twisted, with the legs at sharp angle to the torso.
The boys’ uncle, Abdel Kareem Baker, 41, raged at Israel after the attack.
‘‘It’s a cold-blooded massacre,’’ he said. ‘‘It’s a shame who come they didn’t identify them as kids with all of the advanced technology they claim they’re using.’’
The Israeli military said it was looking into the incident.
Hamas fired dozens of rockets into Israel on Wednesday and vowed to reject a cease-fire until its demands are met, including the easing of border closures and the release of former Hamas prisoners released by Israel in a 2011 prisoner exchange and rearrested by Israel last month in the West Bank.
Hamas official Sami Abu Zuhri said Wednesday in press conference that Hamas feels ‘‘alone in the field’’ with little support from the Arab world.
He called on Palestinian President Mahmoud Abbas, of the rival Fatah faction in the West Bank, to support Hamas’ refusal of an Egyptian cease-fire deal.
The Gaza Interior Ministry’s website said Israel warplanes carried out dozens of airstrikes Wednesday, targeting 30 houses, including those of senior Hamas leaders Mahmoud Zahar, Jamila Shanti, Fathi Hamas and Ismail Ashkar.
The Israeli military did not immediately comment on the strikes.
Zahar was a key figure in Hamas’ violent takeover of Gaza in 2007, while the other three were members of the Palestinian parliament elected in 2006. Many Hamas leaders have gone into hiding since the beginning of the Israeli offensive.
The Egyptian proposal had called for a halt in hostilities by Tuesday night to be followed by talks on the terms of a longer-term cease-fire, including easing Gaza’s 7-year-old border blockade by Israel and Egypt.
The militant group views a significant easing of the Israeli blockade as key to its survival, but does not believe Egypt’s current rulers — who deposed a Hamas-friendly government in Cairo last year — can be fair brokers.
As Cairo’s effort collapsed, Israeli Prime Minister Benjamin Netanyahu warned that Hamas will pay a high price for rejecting the truce offer.
Alongside the airstrikes, Israel also told tens of thousands of residents of the northern town of Beit Lahiya and the Zeitoun and Shijaiyah neighborhoods of Gaza City, all near the border with Israel, to evacuate their homes by 8 a.m. Wednesday. The warnings were delivered in automated phone calls, text messages and leaflets dropped from planes.
The Israeli military said in its message that large numbers of rockets were launched from these areas and that Israel plans to bomb these locations.
‘‘Whoever disregards these instructions and fails to evacuate immediately, endangers their own lives, as well as those of their families,’’ the message said.
On Wednesday morning, hundreds of residents of Zeitoun and Shijaiyah were seen walking in the streets, carrying small bags with belongings.
The Wafa Rehabilitation Center in Shijaiyah, which cares for 15 disabled and elderly patients, received several calls demanding the patients evacuate, said its director, Basman Ashi.
He said an Israel shell hit near the building, causing damage to the second floor, but no injuries. Ashi said he won’t evacuate because his elderly patients have nowhere to go.
Four foreign volunteers — from England, the U.S., France and Sweden — have set up camp at the rehabilitation center to deter the military from targeting it.
English volunteer Rina Andolini, 32, said the patients range in age from 12 to over 70 and none can walk or move without assistance. She said there are also 17 Palestinian staff members.
Andolini said the patients are living in a constant state of fear, intensified by the Israeli tank shelling from across the border.
When asked about the situation at the rehabilitation center, the office of the Israeli military spokesman said its residents ‘‘have been asked repeatedly to leave.’’
‘‘There is a rocket launching site in the area,’’ the military said, adding that Gaza militants use the center to hide ‘‘behind civilians.’’
Only one Israeli has so far died in the conflict — a civilian distributing food to soldiers in southern Israel on Tuesday evening — largely because of the effectiveness of Israel’s Iron Dome air defense system in downing incoming rockets.