A man wearing a mask and carrying a gun was taken into custody near the White House Saturday afternoon after a struggle, the Secret Service said.

The incident occurred a few minutes after 1 p.m. on Pennsylvania Avenue near Madison Place NW, close to the northeast side of the White House grounds. An officer from the Uniformed Division of the Secret service spotted the man who had a handgun in a holster. The officer confronted the him and a brief struggle ensued, according to the Secret Service.

The agency said the man was charged with carrying a firearm without a license, carrying unregistered ammunition, resisting arrest and committing a crime while wearing a mask.

The area adjacent to the north fence of the White House was closed “momentarily” a secret service spokesman said.

It was not clear why the man arrested was carrying the gun, or wearing a mask. A “Million Mask March” demonstration was to be held in Washington Saturday, according to a Facebook posting. but it could not be learned whether he was connected to it. On its site, the March said its goal was to “seek positive change.” It said the march was being held for the fourth year and was to protest corruption and fight for constitutional rights.