Iran’s foreign minister accused the United States on Thursday of attempted piracy in trying to prevent Gibraltar’s release of an Iranian oil tanker.