An official with knowledge of the accident said the victim was evidently inside what remained of the building even as its walls were being knocked down. The roof collapsed when one of the last two walls was demolished, killing him, the official said.