SYRACUSE, N.Y. (AP) — A New York man who confessed on Facebook to murder after he was acquitted has been sentenced to nine years in prison for illegal possession of ammunition.

U.S. District Judge Brenda Sannes sentenced 32-year-old Alfred Thomas on Monday in Syracuse, citing the Facebook confession as a factor in adding five years to his sentence. The judge also cited Thomas’ involvement in a drive-by shooting.

Thomas was acquitted in September 2014 of shooting Maurice Paulk. He later said on Facebook that he did it. Prosecutors cited the Facebook confession as proof that Thomas was a “danger to the public in the extreme.”

The Syracuse Post-Standard (

) reports that Thomas’s lawyer said the Facebook admission was meant to clear Thomas’ co-defendant, George Colon, who was convicted of murdering Paulk.