CAIRO — The Hamas militant group said Saturday it has accepted a new Gaza ceasefire proposal from mediators Egypt and Qatar, but Israel said it has made a counterproposal in “full coordination” with the third mediator, the United States.

Egypt early in the week made a proposal to get the troubled ceasefire back on track, following Israel’s surprise resumption of fighting. It was not immediately clear whether the proposal changed before Khalil al-Hayyah, the leader of Hamas in Gaza, announced it had been accepted.

Early in the week, an Egyptian official described the proposal to The Associated Press, saying Hamas would release five living hostages, including an American Israeli, from Gaza in return for Israel allowing aid into the territory and a weekslong pause in fighting. Israel would release hundreds of Palestinian prisoners. The official spoke on the condition of anonymity because he was not authorized to brief the media on the closed-door talks.

— The Associated Press