Explanation
Let's look at the meanings of the given words:
burglars- a person who commits burglary
gangsters- a member of a gang of violent criminals
pirates- a person who attacks and robs ships at sea
thieves- a person who steals another person's property, especially by stealth and without using force
or violence
As per the meanings and the description of the place, the correct choice will be the 3rd option
i.e. pirates.
Correct Sentence: The ship was attacked by pirates near a deserted Island.