JERUSALEM — A tentative cease-fire between Israel and Palestinian militant groups in Gaza appeared to have taken hold Monday morning, bringing a short but deadly bout of cross-border fighting to an end as abruptly as it had started. At least 22 Palestinians, including militants and children, were killed in Gaza over the weekend, and four Israeli civilians died in the fighting.

Hamas and Islamic Jihad, the Gaza groups that fired about 600 projectiles at southern Israel on Saturday and Sunday, had indicated a readiness to restore the fragile truce that went into effect nearly five years ago but has been interrupted repeatedly by violence. A Hamas-run television channel reported in the early hours of Monday that a new cease-fire had been reached, and would come into effect at 4:30 a.m.

According to Arab news reports, the understanding was brokered by Egypt and the United Nations, and includes measures to ease the acute economic crisis in the impoverished Gaza Strip, home to two million people. It came with the start of the Muslim holy month of Ramadan.

At least nine militants and as many Palestinian civilians, including two children, were killed by Israeli forces on Sunday alone, according to Health Ministry officials in the Hamas-run coastal territory. It was the worst violence between the two sides since a 50-day war in 2014.