People react after an Israeli strike on a school, housing displaced Palestinians, in the Rimal neighbourhood of central Gaza City. AFP
"Our crews retrieved 12 martyrs from the Mustafa Hafez school, which was bombed by the Israeli occupation west of Gaza City," agency spokesman Mahmud Bassal told AFP.
Thousands of displaced Palestinians had sought refuge in the school, he said, amid the ongoing Israeli war on the Gaza Strip.
Bassal had earlier given a toll of seven dead and 15 wounded in the strike, which he said had hit the second floor of the school building.
AFP photos showed the school reduced to rubble, with scores of Palestinian men and women, many holding children, fleeing the site after the strike.
In recent weeks, the Israeli military has struck several schools across Gaza, primarily in Gaza City, killing hundreds of diplaced people.
Earlier this month, the military had struck the Al-Tabieen School in Gaza City, which killed 93 Palestinians.
Tens of thousands of displaced people have taken refuge in schools since the war broke out.
Israel's war on Gaza has killed at least 40,173 people in Gaza.
Most of the dead in Gaza are women and children, according to the UN human rights office.
Short link: