Saudi Arabia has temporarily halted a major oil pipeline after an attack, citing precautionary concerns as regional threats to exports grow.