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: 

Austin runner fights off man in attempted sexual assault; suspect on the run

Jogger reportedly threatened with butcher knife after entering Lady Bird Lake Trail gazebo

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.

PEOPLE ARE ALSO READING: 

Hundreds of South Austin residents affected by contaminated water

Austin City Council votes to end arrests for small amounts of marijuana

2 dead in massive explosion in northwest Houston