Firefighters say a building is at risk of collapse as they try to extinguish flames which have "completely engulfed" it.