Armed person shot by Secret Service outside White House

Click to play video 'Man shot by security after approaching White House with gun' Man shot by security after approaching White House with gun
WATCH ABOVE: A man who approached the White House with a gun was shot by security after ignoring their warnings to stop according to a witness – May 20, 2016

WASHINGTON — A uniformed Secret Service officer shot a person who drew a weapon just outside the White House Friday afternoon, a U.S. law enforcement official said Friday.

The shooting happened within view of sightseers outside the front of the building, near sidewalks crowded with families, school groups and government workers.

READ MORE: Man arrested after jumping White House fence

The White House was briefly placed on a security alert. President Barack Obama was not there – he was playing golf – but Vice President Joe Biden was in the White House complex and was secured during the lockdown, his office said.

The U.S. law enforcement official, who spoke on condition of anonymity for lack of authorization to release the information, said the person approached the Secret Service officer and drew a weapon, and then the officer opened fire.

Story continues below advertisement

The Secret Service later tweeted that “all Secret Service protectees are safe.”

WATCH: White House locked down after report of possible fence jumper 
Click to play video 'White House locked down after report of possible fence jumper' White House locked down after report of possible fence jumper
White House locked down after report of possible fence jumper – Apr 26, 2016

Separately, a White House official said no one associated with the White House was injured, and everyone inside the complex is safe and accounted for.

A single patient was taken to a nearby hospital in critical condition shortly after 3 p.m., said Doug Buchanan, a spokesman for D.C. Fire and EMS.

READ MORE: ‘It’s about time, eh?’ Obama welcomes Trudeau at White House

Sightseer Jenna Noelle of Austin, Texas, said she had just taken a photo in front of the White House when she noticed a man harassing an agent. Then, “as we were walking away we heard a shot fired, then some people started running away and agents had guns and were evacuating people.”

Story continues below advertisement

“I had a panic attack,” she added. “I’m doing OK now, but it was pretty freaky to be right there a second before it happened. Not really the experience we wanted,” she added.

U.S. Park Police said on Twitter that the shooting happened on West Executive Drive – the street that runs perpendicular to Pennsylvania Avenue, between the White House and the Old Executive Office Building. The White House grounds were shut down to pedestrian traffic, locking staff members and reporters indoors, until the alert was suspended.

Associated Press writer Kathleen Hennessey in Washington contributed to this report.