Some people were killed when a Nigerian building that housed a school collapsed on Wednesday, the governor of Lagos state said, as rescuers continued to search for survivors.