The school collapsed as children were arriving for class
The school collapsed as children were arriving for class AFP / TONY KARUMBA

Seven children died and scores were injured early Monday when a school building collapsed in the Kenyan capital Nairobi, in an accident blamed on shoddy construction.

"We can confirm that we have seven fatalities," said government spokesman Cyrus Oguna.

Education Minister George Magoha said in a statement that 64 pupils had been admitted to Kenyatta National Hospital, most of them with minor injuries, but two others required "more attention".

Hundreds of angry residents of Dagoretti, a poor suburb where many live in makeshift homes, thronged the site where rescuers picked through the rubble until the search for victims ended in the afternoon.

An AFP reporter at the site said books and desks were strewn through the debris of the two-storey building, a semi-permanent structure made of concrete, iron sheeting and timber.

"I had just dropped my son to school, and heard screams on my way back, and that is when I found people assisting them out to hospital," said Margaret Muthoni at Kenyatta National Hospital, whose four-year-old son was injured.

"I am just lucky my son survived with injuries. It is a very unfortunate incident because some children have died," said Muthoni.

Kepha Otieno said he had lost his five-year-old daughter.

"I just can't believe. It is too hard for me and the family," he said.

The school was a private institution with around 800 registered pupils, said Magoha, adding that it would be closed for the next four days.

'Disaster waiting to happen'

Dagoretti MP John Kiarie told KTN television that it appeared the first floor had collapsed on children on the ground floor. However details were sketchy.

Kiarie said the area had no land on which to construct a proper public school.

He said the disaster highlighted the lack of "regulation of educational institutions, especially those in informal settlements... regulations that pertain to the construction and stability of educational institutions.

"It is the highest level of irresponsibility and greed when you look at this structure that came down, and even the ones standing. It is another disaster waiting to happen," said Shadrack Okelo, a local resident.

Moses Nyakiongora, an official with the National Building Inspectorate said at the scene: "This school was not properly constructed. It is totally substandard."

Magoha visited the site and vowed to build a public school in the area.

"What has happened here today is regrettable but investigations have been launched," he said.

"I have inspected the rest of the classrooms and they look stable.

"But the one that collapsed was substandard, it should not have been allowed to be there."

In April 2016, 49 people were killed in the collapse of a six-floor building in the north-east of the capital.