Firefighters spent hours bringing the blaze under control