RICHMOND, Va. – A sniper serving life in prison for terrorizing the Washington, D.C., region as a teenager must get new sentencing hearings in Virginia, a federal appeals court ruled Thursday.

Lee Boyd Malvo enters a courtroom in the Spotsylvania, Va. in 2004. Mike Morones /The Free Lance-Star via Associated Press

The 3-0 decision by the 4th U.S. Circuit Court of Appeals denies an appeal by prosecutors who said they already complied with the requirements of the U.S. Supreme Court, which found in a series of rulings after Malvo was sentenced that mandatory life-without-parole sentences for juveniles are unconstitutional.

Lee Boyd Malvo was 17 when he and his mentor, John Allen Muhammad, fatally shot 10 people in Virginia, Maryland and Washington in 2002.

Muhammad was sentenced to death and executed in Virginia in 2009. Malvo received multiple life-without-parole sentences in Virginia and Maryland.

The 4th Circuit found Malvo’s Virginia sentences must be vacated, upholding the decision of a lower court judge. Thursday’s ruling applies only to Malvo’s four life sentences in Virginia. A Maryland judge denied new sentencing hearings last year for Malvo in those cases.

The appeals panel found that the Supreme Court’s new rules for sentencing juveniles, which must be applied retroactively, were not satisfied when Malvo was sentenced years earlier. Malvo’s resentencing judge must now determine whether his crimes show he’s permanently incorrigible, and thus can be sentenced to life without parole; or that they reflect “the transient immaturity of youth,” and merit a lesser sentence.

“To be clear, the crimes committed by Malvo and John Muhammad were the most heinous, random acts of premeditated violence conceivable, destroying lives and families and terrorizing the entire Washington, D.C. metropolitan area for over six weeks, instilling mortal fear daily in the citizens of that community,” Judge Paul Niemeyer wrote.

“But Malvo was 17 years old when he committed the murders, and he now has the retroactive benefit of new constitutional rules that treat juveniles differently for sentencing.”

Niemeyer added: “We make this ruling not with any satisfaction but to sustain the law. As for Malvo, who knows but God how he will bear the future.”