Some of the people living in the building in South Africa’s biggest city threw themselves out of windows to escape the blaze and might have died because of that, a local government official said.