Police: Gunman fled hotel after shooting officer