WASHINGTON—Nikki Haley’s resignation as U.S. ambassador to the United Nations took top Trump aides and advisers by surprise on Tuesday, and left the White House without a clear successor, White House officials said.

Ms. Haley plans to serve until the end of year, giving President Trump time to consider new candidates. He said Tuesday while en route to Iowa that he is considering five candidates.

Two...