Medics and protestors move a serious wounded girl, who was shot in her head by Israeli troops during a protest at the Gaza Strip's border with Israel, into the treatment room of Shifa hospital in Gaza City, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said, in a new flare-up that shattered a month-long easing of hostilities that was mediated by Egypt. (AP Photo/Adel Hana)

GAZA CITY, Gaza Strip (AP) — Four Palestinians, including two Hamas militants, were killed in an Israeli airstrike and protests Friday as gunshots from the Gaza Strip wounded two Israeli soldiers, officials said, in a new flare-up that shattered a monthlong easing of hostilities that was mediated by Egypt.

The calm along the Gaza-Israel frontier was in exchange for Israel's scaling back restrictions on the territory. However, Gaza's Hamas rulers accused Israel of not honoring the deal.

Leaders from the Islamic militant group were in Egypt on Friday for further talks. Cairo has hoped negotiations could lead to a long-term cease-fire.

The Israeli army said the soldiers who were shot were moderately and lightly wounded, respectively. Israeli aircraft hit a Hamas militant site in response, killing two Hamas gunmen and wounding three others, Gaza's health ministry and Hamas' armed wing said.

The escalation in violence came as thousands of Palestinians demonstrated along Gaza's perimeter fence with Israel on Friday.

The health ministry said a 19-year-old Palestinian protester died shortly after he was injured in southern Gaza Strip. Early Saturday, the ministry added that second demonstrator aged 31 had succumbed to his wounds. More than 50 Palestinians suffered various injuries during protests at several sections of the frontier.

Hamas has hoped that Egyptian mediators could alleviate the blockade that Israel and Egypt imposed after it violently seized full control of Gaza in 2007 from the Western-backed Palestinian Authority.

More than 200 Palestinians and an Israeli soldier have been killed in the border protests that Hamas has led since March last year.

Last month, Israel allowed Gaza fishermen to sail up to 15 nautical miles off the enclave's coast, but retracted the decision this week, scaling it down to the longtime previous limit of nine miles after rockets were fired from Gaza.

Hamas also says Israel delayed the transfer of Qatari money for cash-strapped public institutions in the territory of 2 million people and did not take more measures to ease the grinding power shortage in Gaza.

Medics move a wounded youth, who was shot by Israeli troops during a protest at the Gaza Strip's border with Israel, into the treatment room of Shifa hospital in Gaza City, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said, in a new flare-up that shattered a month-long easing of hostilities that was mediated by Egypt. (AP Photo/Adel Hana)
Medics move their wounded colleague, who was shot by Israeli troops during a protest at the Gaza Strip's border with Israel, into the treatment room of Shifa hospital in Gaza City, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said, in a new flare-up that shattered a month-long easing of hostilities that was mediated by Egypt. (AP Photo/Adel Hana)
EDS NOTE: GRAPHIC CONTENT - A mourner kisses the body of Hamas militant of Abdulla Abu Mallouh, who was killed during an Israeli airstrike at Hamas militants post central Gaza Strip, at the morgue of Al-Aqsa hospital in Deir el-Balah, central Gaza Strip, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said. (AP Photo/Adel Hana)
A relative reacts after he saw the bodies of two Hamas militants, who where killed during an Israeli airstrike at Hamas militants post central Gaza Strip, out side the morgue of Al-Aqsa hospital in Deir el-Balah, central Gaza Strip, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said. (AP Photo/Adel Hana)
EDS NOTE: GRAPHIC CONTENT - Mourners gather over the body of Hamas militant of Abdulla Abu Mallouh, who was killed during an Israeli airstrike at Hamas militants post central Gaza Strip, at the morgue of Al-Aqsa hospital in Deir el-Balah, central Gaza Strip, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said. (AP Photo/Adel Hana)
EDS NOTE: GRAPHIC CONTENT - Mourners gather over the body of Hamas militant of Alla Boubali, who was killed during an Israeli airstrike at Hamas militants post central Gaza Strip, at the morgue of Al-Aqsa hospital in Deir el-Balah, central Gaza Strip, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said. (AP Photo/Adel Hana)
Medics move a wounded youth, who was shot by Israeli troops during a protest at the Gaza Strip's border with Israel, into the treatment room of Shifa hospital in Gaza City, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said, in a new flare-up that shattered a month-long easing of hostilities that was mediated by Egypt. (AP Photo/Adel Hana)
Medics move their wounded colleague, who was shot by Israeli troops during a protest at the Gaza Strip's border with Israel, into the treatment room of Shifa hospital in Gaza City, Friday, May 3, 2019. Three Palestinians, including two militants, were killed by Israeli fire Friday after gunshots from the Gaza Strip wounded two Israeli soldiers, officials said, in a new flare-up that shattered a month-long easing of hostilities that was mediated by Egypt. (AP Photo/Adel Hana)