Authorities said the building toppled late Tuesday , flattening surrounding homes .