A man described as a disgruntled employee who opened fire on his co-workers at a California limestone quarry has been shot and killed by police, bringing an end to a heavily armed manhunt in Silicon Valley.
Three deputies on routine patrol in a Sunnyvale neighbourhood encountered the man, identified by coroner's officials as Shareef Allman, Santa Clara County Sheriff Laurie Smith said. He was crouched behind a vehicle in the driveway of a home.
The deputies opened fire after the man "displayed in a threatening manner his firearm," Sheriff Smith said.
The man was positively identified as the 47-year-old Allman through the use of fingerprints, said Norma Contreras, an investigator with the Santa Clara County's Coroner's Office.
The shooting took place in a residential area east of the Lehigh Southwest Cement Permanente Plant, where Allman allegedly opened fire during a routine safety meeting a day earlier. Three people died and six were wounded.
Authorities believe Allman also shot a woman in an attempted carjacking a couple of hours after fleeing the quarry.
News that Allman was the suspect in these attacks shocked his friends, who described him as a devoted single father of two and a longtime community volunteer.
Close friend Brandon Powell said he was horrified to learn of the shootings because Allman had mentioned taking a gun to work days before the attack, but Mr Powell, 20, believed the man he called "uncle" was joking.
Mr Powell said Allman visited him in Sacramento on Saturday and showed off a recently purchased AK-47 assault rifle. Allman was an avid gun collector who was registered with the state, he said.
When Mr Powell asked Allman what the gun was for, Allman said: "There's some racist people at my job. They're messing with me,'" Mr Powell recalled.