CAIRO — Hamas said Thursday that it would release three more Israeli hostages as planned, paving the way toward resolving a major dispute over the ceasefire in the Gaza Strip.

The militant group had threatened to delay the next release of captives after accusing Israel of failing to meet its obligations to allow in tents and shelters, among other alleged violations of the truce. Israel, with the support of President Donald Trump, has said it will resume fighting if the hostages are not freed, but it did not immediately comment on the statement by Hamas.

The move by Hamas should allow the ceasefire to continue for now, even after Israel said Thursday that a rocket had been launched from Gaza and as doubts remain about the long-term durability of the truce.

Iran-backed Hamas said it held talks in Cairo with Egyptian officials and was in contact with Qatar’s prime minister about bringing into Gaza more shelters, medical supplies, fuel and heavy equipment for clearing rubble — its key demand in recent days. It said in a statement that the mediators had pledged to “remove all hurdles.”

Shortly after the announcement, Hamas spokesman Abdul Latif al-Qanou confirmed that three hostages will be released Saturday.

Egypt’s state-run Qahera TV, which is close to the country’s security services, reported that Egypt and Qatar had succeeded in resolving the dispute. The two Arab countries have served as key mediators with Hamas and helped broker the ceasefire, which took effect in January, more than 15 months into the war.

Egyptian media also aired video showing trucks carrying temporary housing and bulldozers on the Egyptian side of the Rafah crossing with Gaza. They reported that the trucks were heading to an Israeli inspection area before crossing into Gaza.

With the truce holding, the Israeli military said a rocket was fired from inside Gaza on Thursday in what appeared to be the first such incident since the agreement took effect. The projectile landed within the territory, and the military said later that it had struck the rocket launcher that had fired it.

Since the ceasefire began, Israeli fire has killed at least 92 Palestinians and wounded more than 800 others, said Munir al-Bursh, director general of the Gaza Health Ministry. The Israeli military says it has fired on people who approach its forces or enter certain areas in violation of the truce.

The truce faces a much bigger challenge in the coming weeks. The first phase is set to conclude at the beginning of March, and there have not yet been substantive negotiations over the second phase, in which Hamas would release dozens of remaining hostages in return for an end to the war.

Trump’s proposal to remove some 2 million Palestinians from Gaza and settle them in other countries has thrown the truce’s future into further doubt.

In a rare rebuke, Turkey’s President Recep Tayyip Erdogan said Trump’s recent actions, including his push to clear Gaza, pose a threat to global peace.