Fire badly damaged historic building in Butte