In this 2016 photo, Hannah Dugan speaks at a forum at the Milwaukee Bar Association in Wisconsin. Credit: Mike De Sisti/Journal Sentinel/USA Today Network / Imagn Images via CNN Newsource

(CNN) โ€” The Federal Bureau of Investigation arrested a Milwaukee County Circuit judge Friday, FBI Director Kash Patel said on social media, accusing her of helping an undocumented immigrant avoid arrest.

Judge Hannah Dugan is facing two charges for obstruction and concealing the individual from arrest, a law enforcement official told CNN.

โ€œWe believe Judge Dugan intentionally misdirected federal agents away from the subject to be arrested in her courthouse, Eduardo Flores Ruiz, allowing the subject โ€” an illegal alien โ€” to evade arrest,โ€ Patelโ€™s post read before it was quickly deleted. โ€œThankfully our agents chased down the perp on foot and heโ€™s been in custody since, but the Judgeโ€™s obstruction created increased danger to the public.โ€

Dugan is in federal custody as she awaits an initial court appearance, the law enforcement official said.

Brady McCarron, a spokesperson for the US Marshals Service, confirmed to CNN that Dugan was arrested at 8:30 a.m. ET Friday on local courthouse grounds, where she works. She was then processed by the federal Marshals Service.

She is expected to appear before a federal judge in the Eastern District of Wisconsin later Friday morning.

An arrest warrant and criminal complaint are not yet publicly available.

The arrest on federal charges is an escalation in the Trump administrationโ€™s focus on judgesโ€™ conduct, particularly as it relates to immigration enforcement. The Justice Department has repeatedly asserted that it will investigate any local officials who do not assist federal authorities on immigration matters.

Agents with Immigration and Customs Enforcement arrived at the court last week and went immediately to Duganโ€™s courtroom, the Milwaukee Journal-Sentinel reported.

The Journal-Sentinel cited an email from Chief Milwaukee County Circuit Judge Carl Ashley, which said that โ€œthey were asked whether they had a warrant, and the agents presented the warrant as well as their identification.โ€ The chief judge wrote that the ICE agents were told to wait until the court hearing had concluded.

Eduardo Flores-Ruiz was arrested on a federal criminal complaint earlier this week after he allegedly fled from Duganโ€™s courthouse when federal immigration authorities were planning to arrest him days earlier.

Court documents indicate that Flores-Ruiz learned the ICE agents were there to arrest him and โ€œfled the building.โ€ The agents confronted him outside the courthouse where he again ran away, but was soon โ€œapprehended a short distance away.โ€

Flores-Ruiz has not yet entered a plea and is being detained, according to his federal court record. This would be a separate case from the alleged charge for Dugan.

This story has been updated with additional development.