A Kentucky state trooper driving home on Interstate 64 is being hailed a hero after he spotted and put an end to a violent assault on the interstate.

Trooper Jeffrey McWhorter noticed an SUV pulled off on the shoulder of I-64 as he drove home from in-service training in Frankfort on Monday afternoon, according to Kentucky State Police. He saw a man attempting to pull a woman out of the vehicle and then watched as the man got on top of the woman and started choking her.

Police identified the man as Travis Phillips, 40, of Frankfort.

In an interview with WLEX, the woman, identified as Glory Purvis, said her attacker was her ex-boyfriend.

"(I saw) my life flashing in front of me before I blacked out," she told the news station, "and he saved my life. He honestly saved my life."

Phillips had a knife in his hand when he turned to look at McWhorter, police said. The trooper pulled out his Taser and demanded Phillips release his weapon and get on the ground. When he refused, McWhorter stunned Phillips and turned his attention to Purvis.

Police said Purvis was treated at the scene and released. Phillips suffered a self-inflicted knife wound. Medics took him to a local hospital.

Authorities charged him with fourth-degree assault, third-degree terroristic threatening and resisting arrest.

Kentucky State Police continued to investigate the case Tuesday.