“We worked through the night and one body was recovered,” the southwest coordinator of the National Emergency Management Agency (NEMA), Ibrahim Farinloye, told AFP.
The dilapidated building in the densely populated Lagos Island area of the city came down without warning on Wednesday morning.
Locals, firefighters and other emergency services workers picked through the rubble to find those trapped, in chaotic scenes.
Thirty-seven people were rescued alive, Farinloye said on Wednesday night.
Lagos State governor Akinwunmi Ambode said the building had been earmarked for demolition and a nursery and primary school were being run illegally on one of its floors.
School bags, toys and clothes were among the piles of rubble as a bulldozer tried to clear a path through wreckage.
Shopworker Adeniyi Afolabi, who lives nearby, gave the name of the school as the Ohen Nursery and Primary, and said there were 144 pupils in attendance on Wednesday.
Another local, Zion Munachi, also confirmed the name and the number of pupils. Both said not all children were at the school because of sports activities.
Joshua Yang, of the Lagos State Fire Service, said the nursery area of the building had now been cleared.
“There are no persons left in the rubble,” he told the TVC News channel.
Building collapses are tragically common in Nigeria, where building regulations are routinely flouted.
In September 2014, 116 people died — 84 of them South Africans — when a six-storey guesthouse collapsed at the Lagos church complex of celebrity televangelist TB Joshua.
An inquiry found extra floors had been added without planning permission.
In 2016, at least 60 people were killed when the roof collapsed at a church in Uyo, the capital of Akwa Ibom state, in the south.