Countries are urging their citizens to leave Iran amid escalating tensions with the U.S. over its nuclear program.