MARAWI, Philippines — A Roman Catholic priest seized by militants loyal to the Islamic State has been shown in a video making an appeal to President Rodrigo Duterte to halt a weeklong military offensive that has devastated this southern Philippine city.

The military said on Wednesday that it was analyzing the video, which was released on social media on Tuesday. It shows the priest, the Rev. Teresito Suganob, who was abducted by gunmen last week with some parishioners, appealing for the group’s safety.

The video does not indicate when or where it was recorded, but the background shows what appears to be a war-torn area, and bursts of gunfire can be heard.

Father Suganob and the parishioners were abducted during heavy firefights around Marawi, a city of 200,000 on the island of Mindanao that has been reduced almost to a ghost town.