A Baker man pleaded guilty Wednesday to manslaughter and attempted murder charges in a 2011 slaying outside a Greenwell Springs Road nightclub and was sentenced to 40 years in prison.

Anthony Armstead, 29, was accused of fatally shooting Arthur Johnson, 28, in the parking lot of Club Tri-Ambient on June 30, 2011, after an argument.

Armstead fired another shot that struck a woman in the parking lot. Another man’s cellphone was shot off his hip, but he was not injured, police said.

Armstead was standing trial in state District Judge Don Johnson’s courtroom on one count of second-degree murder and two counts of attempted second-degree murder when he pleaded guilty to manslaughter and both attempted murder counts.