An adolescent male complains of intense testicular pain. The…

An adolescent male complains of intense testicular pain. The examiner observes swelling and redness of the scrotum on that side, along with a tender, swollen spermatic cord and absence of the cremasteric reflex. What is the primary intervention that should be prioritized in this case?