Iran's foreign minister has issued a direct threat against the United States, warning of retaliation if attacked.