RICHMOND, Va. (AP) — The man who police say fatally shot a Virginia state trooper at a Richmond bus station had a lengthy criminal record in Illinois.

Court records show 34-year-old James Brown III of Aurora was charged with attempted murder in 2001 before pleading guilty to lesser charges. He was sentenced to four years in prison, with credit for time served.

In 2006, Brown was charged with unlawfully possessing a weapon and body armor as a felon and drug charges. Court records show he pleaded guilty to cocaine possession and the other charges were dropped. He was sentenced to 5 1/2 years in prison.

Records show that Brown pleaded guilty in 2012 to domestic battery and aggravated battery of a pregnant woman. He was sentenced to 2 1/2 years in prison.

Police say Brown shot Trooper Chad Dermyer several times at the Greyhound bus station Thursday before Brown was killed by two other troopers.