A woman who believed she was being suppressed by YouTube and told her family she “hated” the company opened fire at its headquarters in California, wounding three people before taking her own life, police said.

Investigators do not believe Nasim Aghdam specifically targeted the three victims when she pulled out a handgun and fired off several rounds in a courtyard at the company’s headquarters south of San Francisco on Tuesday, police said.

But a law enforcement official told the Associated Press that Aghdam had a longstanding dispute with the company. The official said Aghdam used the name Nasime Sabz online.

A website in that name criticised YouTube’s policies and said the company was trying to “suppress” content creators.

“Youtube filtered my channels to keep them from getting views!” one of the messages on the site said. “There is no equal growth opportunity on YOUTUBE or any other video sharing site, your channel will grow if they want to!!!!!”

Aghdam “hated” YouTube and was angry that the company stopped paying her for videos she posted on the platform, her father, Ismail Aghdam, told the Bay Area News Group.

(PA Graphics)
(PA Graphics)

On Monday, he called police to report his daughter missing after she did not answer the phone for two days and warned officers that she might go to YouTube, he said.

Officers in Mountain View – about 30 miles from YouTube’s headquarters – found her sleeping in her vehicle in a car park around 2am on Tuesday but let her go after she refused to answer their questions.

Aghdam did not appear to be a threat to herself or others, police spokeswoman Katie Nelson said.

Ms Nelson would not say whether officers had been warned that Aghdam might have been headed to YouTube’s headquarters.

Earlier Tuesday, police said the shooting was being investigated as a domestic dispute but did not elaborate. It was not immediately clear why police later said the people shot were not specifically targeted.

One of the victims – a 36-year-old man – was in a critical condition, a spokesman for San Francisco General Hospital said. A 32-year-old woman was in a serious condition and a 27-year-old woman in a fair condition, the spokesman said.

YouTube employee Dianna Arnspiger said she was on the building’s second floor when she heard gunshots, ran to a window and saw a person with a gun on a patio outside.

“It was a woman and she was firing her gun. And I just said, ‘Shooter’, and everybody started running,” Ms Arnspiger said.

She and others hid in a conference room for an hour while another employee repeatedly called an emergency number for updates.

The world’s biggest online video website is owned by Silicon Valley giant Google, but company officials said it is a tight-knit community.

The headquarters has more than a thousand engineers and other employees in several buildings. Originally built in the late 1990s for the clothing retailer Gap, the campus south of San Francisco is known for its sloped green roof of native grasses.

Inside, Google several years ago famously outfitted the office with a three-lane red slide for workers to zoom from one story to another.

“Today it feels like the entire community of YouTube, all of the employees, were victims of this crime,” said Chris Dale, a spokesman for YouTube.

YouTube CEO Susan Wojcicki said in a tweet the company would “come together to heal as a family”.

Officers and federal agents responding to multiple 911 calls swarmed the company’s campus in the San Francisco Bay Area city of San Bruno.

Zach Vorhies, 37, a senior software engineer at YouTube, said he was at his desk working on the second floor of one of the buildings on the campus when the fire alarm went off.

He got on his skateboard and approached a courtyard, where he saw the gunwoman yelling “come get me”. He said the public can access the courtyard where he saw her without any security check during working hours.

He said there was somebody lying nearby on his back with a red stain on his stomach that appeared to be from a bullet wound.

He said he realised it was an active shooting incident when a police officer with an assault rifle came through a security door. He jumped on his skateboard and took off.

Officers discovered one victim with a gunshot wound when they arrived and then found the gunwoman with what appeared to be a self-inflicted gunshot wound several minutes later, San Bruno police chief Ed Barberini said.

He said two additional gunshot victims were later located at an adjacent business.