Footage, filmed by a passenger on board a steam train in Scotland, shows crews attempting to extinguish wildfires on a hill next to the track.