The attack comes amid a resurgence of piracy in the region in recent days.