LOWELL, Mass. — A former Lowell police officer has pleaded guilty to driving drunk and causing a crash two years ago that killed a 26-year-old man.

Forty-three-year-old Eric Wayne was sentenced to four years in state prison on Tuesday, the day his trial was scheduled to begin. He entered the guilty pleas to charges that include motor-vehicle homicide by operating under the influence of alcohol. He will lose his driver’s license for 15 years.

Authorities say Wayne was driving in Methuen (mih-THOO’-uhn) in August 2014 when he crossed the center line and struck an SUV head-on. The crash killed Bryant Paula, of Lawrence, and seriously injured his sister.

Wayne served almost two decades as an officer and resigned after the crash.

He said in court that he’s “glad” he’ll be punished for his actions.