An abandoned building earmarked for housing has gone up in flames, just days after the project was signed off.