Israel has closed its only crossing for people with Gaza except for humanitarian cases over border incidents that saw protests at the weekend, an Israeli official has said.

A spokeswoman for the Israeli defence ministry unit that oversees the passage confirmed that the Erez crossing had been closed.

Border protests on Friday left two Palestinians dead by Israeli gunfire.

Israel's army said firebombs and improvised explosive devices (IEDs) were also hurled at the border fence, while a number of Palestinians briefly crossed into Israeli territory.

The closure and border incidents occurred despite attempts by Egypt and United Nations officials to reach a long-term truce between Israel and Hamas, the Islamist movement that runs Gaza.

The spokeswoman for the defence ministry unit, known as COGAT, did not say how long the crossing would be closed.

The Palestinian Authority civilian affairs office in Gaza also confirmed the closure except for medical cases and Palestinians seeking to cross back into the enclave.

Israel has enforced an air, land and sea blockade on Gaza for more than a decade, but grants permission to a limited number of people to cross for various reasons.

Israel had just last week reopened its only goods crossing with Gaza after closing it to most deliveries for more than a month over border tensions.

Protests and clashes began on the Gaza border on 30 March and have continued at varying levels since then.

At least 171 Palestinians have been killed by Israeli fire during that time, while one Israeli soldier was shot dead in July.

There have also been several severe military flare-ups, including three since July.

UN officials and Egypt have been seeking to secure a long-term truce between Hamas and Israel to allow for humanitarian issues in the impoverished enclave of two million people to be addressed.

Israel is demanding calm and a return of the remains of two soldiers Hamas is believed to be holding.