WASHINGTON — A Sanford firefighter pleaded guilty Tuesday to one charge related to the attack on the U.S. Capitol on Jan. 6.

Under an agreement with prosecutors, Andrew James Williams admitted guilt to one federal misdemeanor, parading, demonstrating, or picketing in a Capitol Building, according to records filed Tuesday in the District of Columbia.

The maximum time behind bars for this crime is six months in prison. It's also punishable by a fine of no more than $5,000.

His sentencing is set for Jan. 27.

Federal prosecutors filed an updated indictment against Williams with the single charge on Monday.

He previously had been charged with two other misdemeanors — disorderly conduct on U.S. Capitol grounds and unlawful entry of a restricted building. He no longer faces those charges.

The maximum time behind bars for each of those misdemeanors is one year in federal prison.

Williams remains free on his own recognizance.

Williams will remain on administrative leave without pay, pending his final sentencing on his plea agreement and the results of the administrative investigation, according to a statement Tuesday from the Sanford Fire Department.