A Pearl River man pleaded guilty to attempted first-degree murder Monday in the 2015 shooting of his then-girlfriend.

Ronald Brown, 58, also pleaded guilty to possession of a firearm by a convicted felon, according to Lisa Page, spokeswoman for 22nd Judicial District Attorney Warren Montgomery.

District Judge Raymond Childress sentenced Brown to 25 years in prison for the attempted murder and 10 years on the firearm charge, with the sentences to be served concurrently.

The shooting happened on April 27, 2015, when the victim came home and found Brown hiding in her kitchen, Page said in a news release.

The victim was able to get into her vehicle after a short struggle, Page said, but Brown shot her through the window as she tried to flee, striking her in the head.

She drove herself to the Louisiana Heart Hospital in Lacombe, and Brown was arrested shortly thereafter by the St. Tammany Parish Sheriff’s Office.

Brown had a record of violent crime. Five years before the shooting, he had pleaded guilty to attempted second-degree kidnapping for holding a knife to another woman's neck, preventing her from leaving for three hours.

He was sentenced to five years in that case, with all but 18 months suspended, plus five years of probation.

Assistant District Attorney Becky Jo Hollen, who prosecuted the 2015 case, asked the court to sentence Brown under the state’s repeat offender law, Page said.

Follow Sara Pagones on Twitter, @spagonesadvocat.