(CNN) The woman who shot three people at YouTube headquarters in Northern California has been identified as Nasim Aghdam, two law enforcement sources told CNN.

The woman took her own life after the shootings. She was found at the scene and appeared to have killed herself with a handgun, but the investigation is just beginning, San Bruno Police Chief Ed Barberini said.

"We know very, very little right now, and we probably won't know more until tomorrow morning," the chief said.

A fourth person was injured as people scrambled off the patio outside the cafe on campus.

The shooter is believed to have known at least one of the victims, two law enforcement officials told CNN.

The shooter's motive was unclear, Barberini said, adding that it's unclear whether the shooting was a domestic violence incident.

A spokesman for Zuckerberg San Francisco General Hospital, a level 1 trauma center, said the facility received three patients. One 36-year-old man was in critical condition, one 32-year-old woman was in serious condition and one 27-year-old woman was in fair condition.

Dr. Andre Campbell said the three patients were all conscious and none had yet gone into surgery. When asked how the patients reacted, Campbell said: "Shocked, like we are every time these terrible things happen."

Man thought it was balloons popping

One witness inside a cafe near the shooting said the gunfire didn't immediately register with him.

"It was a surprise, because you don't really expect something like that," the man told CNN affiliate KPIX . "I heard some pops, I obviously thought it was balloons, but then I thought that doesn't make sense, not today. Then I heard more shots and that's when everyone started scrambling for the door."

Vadim Lavrusik, a YouTube product employee, tweeted he and others hid.

"Heard shots and saw people running while at my desk. Now barricaded inside a room with coworkers," he wrote.

Active shooter at YouTube HQ. Heard shots and saw people running while at my desk. Now barricaded inside a room with coworkers. — Vadim Lavrusik (@Lavrusik) April 3, 2018

Not long after the first tweet he wrote: "Safe. Got evacuated it. Outside now."

Another YouTube employee said during the shooting people were trying to get out of the building "as fast as they could."

Police on the scene at YouTube in San Bruno, California.

She said she was on a conference call and a colleague, who heard shots, told her at least one person was shot on the patio where people eat.

"We were all suddenly aware of a lot of noises, of sounds, people running outside of the room where she was. And people screaming," said the employee, who was in a building down the street.

" 'I have to get out of here,' " the woman said her colleague said.

A witness told CNN he heard three or four shots and later more shots. He was in the drive-through line at a Carl's Jr. fast-food restaurant across the street from an end of the YouTube building where there are tables with umbrellas on a patio.

A woman ran over to the Carl's Jr. with a calf wound, he said. People at the fast-food restaurant tried to use napkins to stop the bleeding.

Photos: Shooting at YouTube headquarters Police respond to YouTube headquarters in San Bruno, California, after gunshots were reported there on Tuesday, April 3. At least three people were injured in a shooting, according to San Bruno Police Chief Ed Barberini, and the suspected shooter was found dead. Barberini said the dead woman appeared to take her own life but the investigation was just beginning. Hide Caption 1 of 8 Photos: Shooting at YouTube headquarters Police walk outside the YouTube building. YouTube, which was founded in February 2005, quickly became the most well-known of several online video sites. Hide Caption 2 of 8 Photos: Shooting at YouTube headquarters Workers walk down a street near the YouTube complex. Hide Caption 3 of 8 Photos: Shooting at YouTube headquarters Burlingame Police Chief Eric Wollman hands a dog named Kimba to a man who didn't give his name but said he worked for YouTube. Hide Caption 4 of 8 Photos: Shooting at YouTube headquarters People gather outside the building. One YouTube employee said people were trying to get out of the building "as fast as they could." Hide Caption 5 of 8 Photos: Shooting at YouTube headquarters Overhead video from CNN affiliate KGO showed a heavy police presence. People gathered outside, and one by one they were were frisked and patted down by officers. Several roadways near the building were closed to traffic. Hide Caption 6 of 8 Photos: Shooting at YouTube headquarters Officers run toward the building after the shooting. Hide Caption 7 of 8 Photos: Shooting at YouTube headquarters The city of San Bruno received multiple 911 calls from people reporting shots fired, City Manager Connie Jackson told CNN. Hide Caption 8 of 8

The man, who would only give his name as Jesse, said he went over to the shooting site and saw a woman drop to the ground.

"She must have been deceased after that because I didn't hear anything after that," he said.

Police were there quickly

Police were at the scene within two minutes of the initial 911 call, the chief said.

Overhead video from KGO showed a heavy police presence outside the YouTube building. A crowd gathered outside the building and, one by one, people were frisked and patted down by officers. Several roadways near the building were closed to traffic.

President Donald Trump tweeted that he was thinking about the victims.

"Was just briefed on the shooting at YouTube's HQ in San Bruno, California. Our thoughts and prayers are with everybody involved. Thank you to our phenomenal Law Enforcement Officers and First Responders that are currently on the scene," he wrote.

Was just briefed on the shooting at YouTube's HQ in San Bruno, California. Our thoughts and prayers are with everybody involved. Thank you to our phenomenal Law Enforcement Officers and First Responders that are currently on the scene. — Donald J. Trump (@realDonaldTrump) April 3, 2018

Sen. Dianne Feinstein, a leading advocate in the US Senate for tighter gun laws, tweeted she was praying for YouTube employees.

The California Democrat wrote: "My stomach sinks with yet another active shooter alert. I'm praying for the safety of everyone at YouTube headquarters."

My stomach sinks with yet another active shooter alert. I'm praying for the safety of everyone at YouTube headquarters. — Sen Dianne Feinstein (@SenFeinstein) April 3, 2018

YouTube is owned by Google

YouTube, which was founded in February 2005, quickly became the most well-known of several online video sites. In 2006 Google said it was purchasing YouTube for $1.65 billion in stock.

More than 1,100 people work at the YouTube office in San Bruno. Employees there include engineers working on site search, infrastructure, content channels and ad products; and sales teams that work with advertisers and content creators.

The Bureau of Alcohol, Tobacco, Firearms and Explosives and FBI will help investigate the incident, according to the angencies' San Francisco offices.

San Bruno is about 13 miles south of San Francisco.