Four people injured when a train derailed in the Illawarra have been released from hospital, as police continue to search for a man seen fleeing from a van parked on the rail line.