A woman believed to be the shooter at YouTube headquarters is dead of a self-inflicted gunshot and four others have been wounded, police in California have said.