The Network Rail employee was trying to retrieve a bag from the line at Rowlands Castle.