WASHINGTON -- The U.S. Secret Service says a man with a firearm walking near the White House led authorities to briefly lock down the property as a precaution.

A uniformed Secret Service officer confronted a man wearing a mask and a carrying a firearm on Saturday at around 1 p.m. as he walked along Pennsylvania Avenue near Madison Place, on the eastern side of Lafayette Park.

The man was placed under arrest after a brief struggle and turned over to the local police department. He will be charged with carrying a firearm without a license, resisting arrest, committing a crime while wearing a mask, other other charges, according to a statement from the Secret Service.

President Obama was not at the White House at the time. He was in Maryland, playing golf at Andrews Air Force Base.