Prosecutor: ‘No doubt’ gunman was targeting police officers