Many displaced families from Gaza’s small Christian community have been living in the church compound since the war began after their own homes were destroyed.

While he was alive, the late Pope Francis called them on a near-daily basis.

A video and photos shared with the BBC showed the roof of the Holy Family Church was hit, close to the cross, and that windows were broken.

TV footage showed the Argentine parish priest, Father Gabriele Romanelli, walking unsteadily and checking on a man on a stretcher at the Al-Ahli hospital in Gaza City.

The Latin Patriarch of Jerusalem, Cardinal Pierbattista Pizzaballa, told the Vatican News website that the Holy Family Church was hit by a tank shell.

“What we know for sure is that a tank, the IDF [Israel Defense Forces] says by mistake, but we are not sure about this. They hit the church directly,” he said.

The charity Caritas Jerusalem said the shell hit the church roof, “scattering shrapnel and debris across the yard”.

“At the time, some individuals were outside the main building, including two elderly women who were sitting inside our Caritas psychosocial support tent. Both were severely wounded and were transported by ambulance to Al-Ahli Hospital after a 15-minute delay,” it said.

“Three young people who had been standing at the entrance of the church were also badly injured and were rushed to the hospital using private vehicles.”

Later, the Latin Patriarchate of Jerusalem announced that “three individuals lost their lives as a result of the injuries sustained and nine others were wounded, including one in critical condition and two in serious condition”.

Two of those killed were identified by Caritas Jerusalem as Saad Salameh, the 60-year-old parish janitor, and Fumayya Ayyad, an 84-year-old woman.

The Vatican’s secretary of state sent a telegram to the victims saying Pope Leo was deeply saddened by the loss of life and had assured Father Romanelli “and the whole parish community of his spiritual closeness”.

“His holiness renews his call for an immediate ceasefire, and he expresses his profound hope for dialogue, reconciliation and enduring peace in the region,” it added.