Armed pirates have hijacked an oil tanker off Yemen and taken it to Somalia's coast, the latest attack in a resurgence of piracy in the region.