WASHINGTON ― The FBI’s No. 2 official, who has for months been under fire from President Donald Trump and his allies on Capitol Hill, is resigning.

FBI Deputy Director Andrew McCabe, who served as the acting director of the bureau last year after Trump fired former FBI Director James Comey, is stepping down, NBC’s Pete Williams first reported.

McCabe felt pressure to leave from current FBI Director Christopher Wray, according to The New York Times. Wray reportedly had concerns about McCabe’s actions during the 2016 presidential election and suggested his deputy be demoted to another job, which made McCabe feel like he should leave the bureau.

McCabe is leaving his position immediately, but he is set to be on the FBI payroll for a few more months, a source told HuffPost. McCabe has accumulated leave time that would bring him past the date where he’d be eligible to retire.

The FBI hasn’t issued a public statement on McCabe leaving, and agents still at the bureau learned of his departure from news reports, according to the Times.

Comey responded to the news Monday evening:

Special Agent Andrew McCabe stood tall over the last 8 months, when small people were trying to tear down an institution we all depend on. He served with distinction for two decades. I wish Andy well. I also wish continued strength for the rest of the FBI. America needs you.

Former Attorney General Eric Holder on Monday called McCabe a “dedicated public servant who has served this country well.” He added that bogus attacks on the FBI and Justice Department were meant to “distract attention from a legitimate criminal inquiry” and were doing “long term, unnecessary damage to these foundations of our government.”

FBI Deputy Director Andrew McCabe is, and has been, a dedicated public servant who has served this country well. Bogus attacks on the FBI and DOJ to distract attention from a legitimate criminal inquiry does long term, unnecessary damage to these foundations of our government.