Sources say the officer was knocked off her bike. When the corporal revealed her pepper spray, the suspect ran away.

AUSTIN, Texas — Editor's note: The related video was published in September 2019.

An off-duty Austin Police Department officer was attacked Thursday night while she and her husband were riding bikes in Downtown Austin, sources tell KVUE's Molly Oak.

The corporal and her husband were riding on the hike-and-bike trail along West Cesar Chavez Street when the suspect struck her husband and knocked him off his bike. When get got back up, the suspect reportedly pulled out a pocket knife and threatened him.

RELATED:

At this point, she pulled out her pepper spray and threatened him with it. Though he ran away, police said officers were later able to find and detain him.

The officer's husband was transported to the hospital.

Officials discovered that the suspect has an address and he has outstanding warrants. He has since been charged with two counts of aggravated assault.

It appears it was a random attack.

This is a developing story. Check back for updates.