A New Jersey Transit Police officer is being hailed a hero after he pulled a man off the tracks seconds before a train arrived.

Surveillance video shows NJ Transit officer Victor Ortiz struggling to pull a man to safety at the Secaucus Junction station in Secaucus, New Jersey, Friday.

In the clip, the man is lying on the tracks and resists Ortiz’s efforts to pull him away. Ortiz finally gets the man off the tracks seconds before a speeding train arrives.

NJ Transit Police Officer Victor Ortiz
Photo credit: NJ Transit

“Officer Ortiz’s selfless and heroic actions demonstrated a level of bravery and a true sense of compassion and purpose that often goes unrecognized but is ever present in our law enforcement community,” a New Jersey Transit spokesperson wrote in a released statement.

“NJ Transit could not be more proud of Victor Ortiz and of the New Jersey Transit Police Department and we hope this serves as a stark reminder of what these men and women do every single day to keep us safe throughout this state.”