Flames were still seen on the roof of the building three hours after crews started fighting the fire.