A former Brooklyn prosecutor was found guilty in Manhattan federal court Tuesday for his role in a police gun licensing scandal that stretched all the way to the office of Mayor Bill de Blasio.

John Chambers, who at one point served in the Kings County District Attorney's Office, was convicted of bribery, honest services fraud and conspiracy to commit honest services fraud after a week-long trial before U.S. District Judge William Pauley III of the Southern District of New York.

Chambers marketed himself to clients as a top firearms licensing attorney in the city. From 2010 to 2015, Chambers bribed NYPD Sgt. David Villanueva, the former supervisor of the department's gun license division, in exchange for help with his clients, prosecutors alleged.