Police searching for gunman who shot offduty security officer