They went to bed with a shelter on their heads.

Few hours later, tragedy struck. Not only were they rendered homeless, some paid the ultimate price of death.

Five people have been confirmed killed after their apartment collapsed early Tuesday.

Rescuers struggled to pull survivors from the rubble of the three-storey building in the southern city of Karachi.

"Five bodies were recovered from the rubble,” the city’s deputy  commissioner, Fareed Uddin, told AFP.

Another local official said a woman and a 13-year-old boy were among the dead.

Rescuers pulled at least nine injured people from the debris.

Karachi, a booming megacity of some 20 million people, has expanded rapidly over the last decade.

The mayor of Karachi Waseem Akhtar visited the scene of the accident on Tuesday afternoon and hit out at the local building department for failing to enforce construction codes.

At least 44 people were killed when a factory collapsed in the eastern city of Lahore in 2015, an accident also blamed on poor building standards.