Authorities say a federal narcotics agent has been charged in New York with providing firearms to a violent drug-trafficking organization.

A federal judge unsealed an indictment Tuesday against Agent Fernando Gomez of the U.S. Drug Enforcement Administration.

The 41-year-old Gomez was taken into custody in Chicago and expected to appear in magistrate court Tuesday afternoon. It was not immediately clear whether he has an attorney.

Authorities charged Gomez with conspiring to distribute cocaine and aiding and abetting the possession of firearms, among other counts.

Prosecutors said in court filings that Gomez previously worked as a police detective in Evanston, Illinois, before joining the DEA so he "could help members of the narcotics conspiracy."

It was not immediately clear how long Gomez worked for the DEA.