A building has been damaged by an explosion.