Gunman ‘essentially executed’ Calif. police officer on duty, investigators say