A former Minneapolis police officer pleaded guilty Wednesday to a state charge of aiding and abetting second-degree manslaughter in the killing of George Floyd.

As part of the plea deal, Thomas Lane will have a count of aiding and abetting second-degree unintentional murder dismissed. Lane and former Officers J. Alexander Kueng and Tou Thao have already been convicted on federal counts of willfully violating Floyd’s rights during the restraint that led to his death.

The guilty plea comes a week before the two-year anniversary of Floyd’s May 25, 2020, killing. Floyd, 46, died after Officer Derek Chauvin, who is white, pinned him to the ground with a knee on Floyd’s neck as the Black man repeatedly said he couldn’t breathe. The killing, captured on widely viewed bystander video, sparked protests in Minneapolis and around the globe as part of a reckoning over racial injustice.

Lane and Kueng helped to restrain Floyd, who was handcuffed. Lane held down Floyd’s legs and Kueng knelt on Floyd’s back. Thao kept bystanders from intervening during the 9 1/2-minute restraint.

The state and Lane’s attorneys agreed to a recommended sentence of three years — which is below state sentencing guidelines — and prosecutors agreed to allow him to serve that sentence at the same time as any federal sentence, and in a federal prison. He has not yet been sentenced in the federal case.

Lane, who is white, told Judge Peter Cahill that he understood the agreement. When asked how he would plead, he said: “Guilty, your honor.”

Attorney General Keith Ellison, whose office prosecuted the case, issued a statement saying he was pleased that Lane accepted responsibility for his role in Floyd’s death.

“His acknowledgment he did something wrong is an important step toward healing the wounds of the Floyd family, our community, and the nation,” Ellison said. “While accountability is not justice, this is a significant moment in this case and a necessary resolution on our continued journey to justice.”

Lane’s attorney, Earl Gray, said he and Lane would have no comment. Lane was not taken into custody and a presentence investigation was ordered. He is scheduled to be sentenced Sept. 21 on the state charge.

The hearing was streamed over Zoom for Floyd’s family members.

Chauvin pleaded guilty last year to a federal charge of violating Floyd’s civil rights and faces a federal sentence ranging from 20 to 25 years. The former officer earlier was convicted of state charges of murder and manslaughter is currently serving 22 1/2 years in the state case.

Lane’s plea comes during a week when the country is focused on the deaths of 10 Black people in Buffalo, New York, at the hands of an 18-year-old white man, who carried out the racist, livestreamed shooting Saturday in a supermarket.

Lane, Kueng and Thao were convicted of federal charges in February, after a monthlong trial that focused on the officers’ training and the culture of the police department. All three were convicted of depriving Floyd of his right to medical care and Thao and Kueng were also convicted of failing to intervene to stop Chauvin during the killing.

After their federal conviction, there was a question as to whether the state trial would proceed. At an April hearing in state court, prosecutors revealed that they had offered plea deals to all three men, but they were rejected. At the time Gray said it was hard for the defense to negotiate when the three still didn’t know what their federal sentences would be.

Under state sentencing guidelines, a person with no criminal record would face a sentence ranging from just under 3 1/2 years to four years and nine moths in prison for second-degree unintentional manslaughter, with the presumptive sentence being four years. Lane’s recommended sentence of three years, which still must be approved by the judge, would be less.

If Lane had been convicted of aiding and abetting second-degree murder, he would have faced a presumptive 12 1/2 years in prison.

“That’s a very sweet deal,” John Baker, a former defense attorney who teaches aspiring police officers at St. Cloud State University, said of Lane’s agreement. “I don’t know how much sweeter the state could’ve been in an offer for a plea deal.”

Baker said a guilty plea makes sense since Lane was looking at much more time if convicted at trial, and is likely going to serve time in federal prison anyway. He said he assumes the same offer has been extended to Thao and Kueng, and he would not be surprised if at least one of them decides to take it.

An attorney for Thao, Robert Paule, was in the courtroom for Lane’s plea hearing. When asked if his client would also plead guilty, he replied “No comment.”

Kueng’s attorney did not immediately return a phone message seeking comment.

Barring any additional pleas, Kueng, who is Black, and Thao, who is Hmong American, are still scheduled to go to trial in June on state charges. They remain free on bond as they await trial.