A fire under a train temporarily closed Gatwick Airport railway station and led to the evacuation of all rail passengers into the south terminal.