The resignation came after it was revealed that Mr. Flynn had misled Vice President Mike Pence and other top White House officials about his conversations with the Russian ambassador to the United States, according to a person close to the administration.