The Alabama was the sixth ship to be hijacked off Somalia 's Indian Ocean coast in a week , and is believed to be the first American-flagged merchant vessel to be attacked by pirates anywhere since the early 19th century .