Officer rescues suspect after crashing in front of train