Fire crews fought the blaze at the intersection of train tracks and a highway with water and foam