A 50-year-old man with a history of alcohol use disorder presents with severe hematemesis. He reports several episodes of retching prior to the bleeding. On examination, he is pale, hypotensive, and tachycardic. Endoscopy reveals a mucosal tear at the gastroesophageal junction with ongoing active bleeding. What is the most appropriate immediate intervention?