A 55-year-old man presents with melena and hematemesis.Upper endoscopy shows a duodenal ulcer with a visible vessel.What is the most appropriate endoscopic treatment?