Officers run toward a YouTube office in San Bruno, Calif., Tuesday, April 3, 2018. Police and federal officials have responded to reports of a shooting Tuesday at YouTube headquarters in Northern California. (AP Photo/Jeff Chiu)
Officers run toward a YouTube office in San Bruno, Calif., Tuesday, April 3, 2018. Police and federal officials have responded to reports of a shooting Tuesday at YouTube headquarters in Northern California. (AP Photo/Jeff Chiu) Credit: Jeff Chiu

San Bruno, Calif. — A woman with a gun opened fire on Tuesday at YouTube’s headquarters, shooting three people and then turning the handgun on herself and taking her own life in an outburst of violence that sent terrified employees fleeing to the streets, officials said.

The violence began at about 12:45 p.m. in a courtyard outside the company’s headquarters, which is just south of San Francisco. Witnesses described seeing a woman shooting a gun in a courtyard as others ran for their lives.

Todd Sherman, a product manager at the company, said he was in a meeting when the sound of people running through the building rumbled into the room.

As he headed toward the building’s exit with a group of fleeing people, someone told him there was a shooter.

“At that point every new person I saw was a potential shooter,” he tweeted. “I looked down and saw blood drips on the floor and stairs.”

Police found one gunshot victim near the entrance of the building, San Bruno Police Chief Ed Barberini said.

Two injured women ran across the street and took shelter in a restaurant, officials said. And a fourth person injured an ankle while fleeing, but was not injured by gunfire, officials said.

One of the injured women had a bullet wound in her leg.

Michael Finney, a worker at a nearby Carl’s Jr., told reporters that he fashioned a bungee cord into a tourniquet, and helped the woman until she was taken to an area hospital.

The shooter was not immediately identified, nor were the victims. San Francisco General Hospital spokesman Brent Andrew said a 36-year-old man was in critical condition, while two other women also were being treated for injuries.

One of the women was in critical condition, while the other was in fair condition, a hospital official said.

YouTube’s parent company, Google, said it is cooperating with law enforcement.

Employees described a chaotic scene inside the corporate offices when the gunshots rang out. Some fled while others hid.