Robert E. Primus received an email from the White House terminating his position, but he said he would continue his duties.