The former top FBI agent in New York for counterintelligence was arrested with an ex-Russian diplomat and charged with violating U.S. sanctions on Russia after he left the FBI by trying to help the oligarch Oleg Deripaska get off the sanctions list, federal prosecutors said Monday.

The ex-agent, Charles McGonigal separately was charged Monday in federal court in Washington, D.C., in connection with accepting $225,000 in cash — while working at the FBI — from a person who had business interests in Europe who had been an employee of Albania’s foreign intelligence service.

That other person later became an FBI source in a criminal probe of foreign political lobbying, which McGonigal was supervising, authorities said.

McGonigal, who is charged with making false statements and other charges in that case, also allegedly failed to disclose, as required, that during an October 2017 trip to Albania and Kosovo, he had met with Albania’s prime minister and with a Kosovar politician.

“Mr. McGonigal betrayed his solemn oath to the United States in exchange for personal gain and at the expense of our national security,” said FBI Assistant Director in Charge Donald Alway