BANGOR, Maine — A Brooklyn, N.Y., man was sentenced Tuesday in U.S. District Court to seven years in prison on a drug charge, according to the U.S. Attorney’s Office.

Kevin “B.B.” St. Hill, 27, also was sentenced to three years of supervised release after he completes his prison term.

U.S. District Judge John Woodcock found that St. Hill was the leader of a major oxycodone and cocaine trafficking operation in central Maine between January and June 2012, Assistant U.S. Attorney Andrew McCormick, who prosecuted the case, said Wednesday.

St. Hill was arrested June 26, 2012, after he sold oxycodone pills to an undercover law enforcement agent, according to court documents.

The defendant pleaded guilty in December.

St. Hill faced up to 20 years in prison and a fine of up to $1 million. Under the prevailing federal sentencing guidelines, he faced between seven years and eight years and nine months in federal prison.