Surgery

A 27-year-old homosexual male presents with a foreign body in the rectum. During the extraction of the foreign body, a large tear in the sigmoid colon with extensive devitalization and contamination is observed. What is the preferred method of treatment?