CAIRO/JERUSALEM (Reuters) - Israeli troops fought militants across Gaza on Wednesday, including in the southern city of Rafah that had been a refuge for civilians, in an upsurge of the more than seven-month war that has killed tens of thousands of Palestinians.

Antagonism between Israel and the United Nations worsened as the Israeli army sought an explanation for footage showing armed men next to U.N. Palestinian relief agency vehicles. Separately, the U.N. said it was investigating an unidentified strike that killed an international staffer in Gaza earlier this week.

Prime Minister Benjamin Netanyahu's army has in recent days pressed into the east of Rafah in pursuit of what it says are four Hamas battalions, despite warnings from its ally the U.S. and others to hold off to avoid mass civilian casualties.

Since Hamas' Oct. 7 attack, Israel has killed 35,000 Palestinians, according to Gaza health officials, with 82 dead on Tuesday in the highest single day toll for weeks.

Hamas-led gunmen killed some 1,200 people in their initial raid, according to Israeli tallies, and still hold 128 hostages out of 252 they captured in their cross-border raid.

In the northern Jabalia refugee camp, residents said Israeli tanks had destroyed clusters of homes but were facing heavy resistance. "They are bombing houses on top of their inhabitants. We know of many families being trapped inside their homes," said Abu Jehad.

Hamas ally Islamic Jihad said it killed some foot soldiers in Jabalia, while Israel's military said it had eliminated "a large number of terrorists" in the camp, which it had claimed to have cleared months ago.

In Rafah, where more than 1 million of Gaza's 2.3 million people had fled from fighting elsewhere, residents said Palestinian gunmen were trying to prevent Israeli soldiers and tanks pushing towards the centre.

Israel said its troops targeted a training compound in the city's east, killing militants in close-quarters combat and finding large amounts of weapons.

Israel reported one death in south Gaza which public broadcaster Kan said was the first such fatality since the start of a ground operation there last week. Over the past day, aircraft hit about 80 militant targets, Israel's military said.

ISRAEL DESCRIBES UN AS 'TERRORIST ENTITY'

Israel said its troops had identified fighters in the central logistics compound of the U.N. Palestinian relief agency UNRWA east of Rafah, demanding an explanation. Reuters verified the location of the footage released by the Israeli army but could not verify when it was filmed or the identity of the men.

"The U.N. has in part become a terrorist entity in itself because it cooperates with Hamas and covers for it," Israel's ambassador to the U.N. Gilad Erdan told Army Radio.

UNRWA has denied allegations of cooperating with Hamas.

The agency said it was examining the footage and would share information when possible. Senior Hamas official Sami Abu Zuhri told Reuters the men were there to protect aid distribution.

"These are false allegations and lies. This is a police force tasked with securing aid centers against acts of theft and looting," Abu Zuhri told Reuters.

Separately, the U.N. said it was investigating an unidentified strike on a car in Rafah earlier this week that killed its first international staff member since Oct. 7, a retired Indian army officer who had been en route to the European Hospital.

Some 254 aid workers have been killed in Gaza since the war began, according to the U.N..

UNRWA estimates that 450,000 civilians have fled Rafah in the week since Israel told them to evacuate. But they have few safe places to go.

"Despite catastrophic humanitarian needs, access restrictions & lack of safe passage obstruct efforts of humanitarian organisations to reach people across the Gaza Strip," it said on X.

The U.N. has warned of imminent famine in Gaza and repeatedly accused Israel of disregarding civilians and shooting at humanitarian convoys.

As the fighting intensifies, ceasefire talks mediated by Qatar and Egypt are at a stalemate, with Hamas demanding a permanent end to Israeli attacks and Netanyahu's government saying it will not stop until the group is annihilated.

(Reporting by Nidal al-Mughrabi in Cairo, Clauda Tanios in Dubai, James Mackenzie, Henriette Chacar and Ari Rabinovitch in Jerusalem; Writing by Andrew Cawthorne; Editing by Philippa Fletcher)

By Nidal al-Mughrabi and James Mackenzie