A 19-year-old man presents with a 1-day history of severe testicular pain, nausea, and vomiting. The pain started suddenly. On examination, the left testis is high-riding, swollen, exquisitely tender, and the cremasteric reflex is absent on that side. What is the most appropriate immediate management?