Surveillance video captured the moment Metro Transit Police likely saved a 22-year-old man from being struck by a Red Line train at the Rhode Island Avenue Metro station. (WMATA via YouTube)

A daring split-second rescue Tuesday night likely saved a 22-year-old man from being struck by a  Red Line train at the Rhode Island Avenue Metro station.

Metro officials said the incident happened at approximately 9:15 p.m. Tuesday. Metro Transit Police had been summoned to the station for a report of a man harassing riders. Officers approached the man, who suddenly jumped off the platform while making statements that he wanted to die, authorities said.

In surveillance video provided by Metro, you can spot the man on the right side of the screen walking erratically along the edge of the station platform. He then apparently jumped on to the tracks in what officials think was a suicide attempt. The officers scramble. Platform warning lights — indicating a train is approaching —  begin to blink. One officer can be seen waving his arms in the air to alert the train operator, who activated the train’s emergency braking system.

Then, with the train approaching, the man makes a last-second attempt to jump back on the platform. Transit police then pull him out of the oncoming train’s path.

The man was not injured, but was transported to a local hospital for mental evaluation. His identity was not released.