Eight people died when a Brooklyn building collapsed into a neighbouring excavation. Officials are investigating construction work, existing damage and housing violations.