NEW YORK — A New York City police officer who fatally shot a man during a confrontation last year was sentenced to life in prison Friday for murder, officials said.

John J. Marquez Jr., 42, pleaded guilty to manslaughter and criminal mischief charges.

He received a 10-year term for the death of Ronald C. Lott, 26, a black man who was fatally shot at a Staten Island convenience store.

Marzquez, who was in the seventh grade, was on paid administrative leave during his sentencing, but he was not fired, city spokesman Paul Browne said.

“I think it’s important for the community to know that he’s a good man and he’s doing a great job,” Browne said of Marquez.

The judge sentenced Marquez to a maximum of 60 years in prison.

Prosecutors had sought the death penalty.

Marvez was a member of the Bronx district attorney’s homicide unit, and his lawyer, Joseph C. Farias Jr., said in court he was surprised at the sentence.

“He is a young man,” Fariastas said.

“He’s done nothing wrong.

He was never a criminal.

He’s just a victim.”

Marquez was charged with manslaughter and civil rights violations for shooting Lott in July 2013.

He had been working as a patrolman for the Bronx borough police department, where he was assigned to the 5th Precinct.

Maruzas, a six-year veteran of the department, was fired in 2014, a year after Lott was shot in the head in an altercation with another man.

Marquez pleaded guilty in March to manslaughter, civil rights charges and violating the civil rights of Lott’s family, according to prosecutors.

He has maintained his innocence.

Marzquez’s attorneys, Joshua W. Williams and Jonathan C. Schoen, did not immediately return calls seeking comment.