NEW YORK (WABC) -- A former NYPD officer convicted in the accidental shooting death of an unarmed man in a darkened stairwell was spared prison time Tuesday, and a judge reduced his manslaughter conviction to a lesser charge.
Peter Liang was sentenced to community service and probation in the shooting of Akai Gurley in Brooklyn. Both sides now say they will appeal the ruling.
Liang will serve five years' probation and 800 hours of community service in the 2014 shooting of Gurley, who was walking down a stairway in a public housing complex when the rookie officer fired a bullet into the dark - by accident after being startled, he said.
The bullet ricocheted and killed Gurley, 28.
"Given the defendant's background and how remorseful he is, it would not be necessary to incarcerate the defendant to have a just sentence in this case," Brooklyn state Supreme Court Justice Danny Chun said in sentencing Liang, also 28.
A jury had convicted him in February of a manslaughter charge carrying up to 15 years in prison. But Chun on Tuesday reduced the offense to criminally negligent homicide, which carries up to four years in prison.
Liang, speaking softly, said he never meant to fire the gun and apologized to Gurley's family.
"My life is forever changed," he added. "I hope you give me a chance to rebuild it."
Despite having to serve no jail time, Liang still plans to appeal his conviction, the defense confirmed to ABC News.
An earlier attempt to throw out his conviction failed. Brooklyn District Attorney Ken Thompson also plans to appeal after the judge reduced the verdict.
Liang was the first New York City police officer convicted in an on-duty shooting since 2005, and the verdict prompted an outpouring of demonstrations on both sides of a closely watched case.
The shooting happened in a year of debate nationwide about police killings of black men. Gurley was black; Liang is Chinese-American.
As the sentencing approached, dozens of demonstrators gathered outside the courthouse - some supporting Liang, others the Gurley family.
Brooklyn prosecutors had recommended Liang serve no time, based on his record and the circumstances of the trial.
"As a result of this conviction, Peter Liang will never be a police officer again," Brooklyn Assistant District Attorney Joe Alexis told the judge. "He's not someone who needs to be locked up to protect society."
Prosecutors suggested five years of probation, six months of home confinement and 500 hours of community service; the judge decided against home confinement.
Some members of Gurley's family had said they felt betrayed by prosecutors' recommendation and had hoped Chun would sentence Liang to prison anyway.
"On that night, because of the recklessness of that night, I'm without my partner, our daughter is without her father, a mom is without her son," Gurley's domestic partner, Kim Ballinger, said in court.
Gurley's girlfriend, Melissa Butler, who was with him when he died, told Liang: "When you stole Akai's life, you stole mine as well."
After hearing the sentence, Gurley's relatives wept and hugged outside the courthouse.
"There's no justice. Akai Gurley's life does not matter. Black lives do not matter," said his aunt, Hertensia Petersen. But, she vowed, "justice will be served, one way or the other."
"Murderer, murderer! You took an innocent life," Petersen said outside court. "Your life is not going to be like everybody's life."
Gurley's mother Sylvia Palmer released a statement which read in part, "This system and its agents should no longer claim to be about justice because they only produce injustice,they do not value Black lives with their actions. It's clear that the lives of police officers are valued above justice."
Activists have looked to Liang's trial as a counterweight to cases in which grand juries have declined to indict officers, including the cases of Michael Brown in Missouri and Eric Garner in New York.
Thompson cautioned that Liang's case shouldn't be commingled with others. But relatives of other New Yorkers killed in police encounters had joined Gurley's family outside court during the trial to call for police accountability.
Meanwhile, Liang's supporters have said he has been made a scapegoat for past injustices. More than 10,000 of his backers rallied in New York and across the U.S. after the verdict, protesting his conviction.
The missteps made by Liang after the shooting were on display during the trial, including that he failed to aid the bleeding Gurley as the dying man's girlfriend frantically performed CPR. A neighbor called out instructions delivered from a 911 operator on the phone. Liang and his partner, who wasn't charged and testified during the trial, said they didn't help because they weren't well-trained. The admissions prompted an internal investigation into training by Commissioner William Bratton.
Liang's attorneys had sought to get the verdict tossed out based on juror misconduct, but the judge refused. Liang was fired after the verdict. So was his partner.
(The Associated Press contributed to this report.)