Sean Spicer, who has been serving in a dual role for President Donald Trump as press secretary and communications director, abruptly resigned on Friday after Trump chose Anthony Scaramucci as the new communications director, a White House official said.