Israeli Prime Minister Benjamin Netanyahu is understandably miffed with President Obama's criticisms of settlements (through WH Press Secretary Josh Earnest) considering he had met with him only hours without bringing up the subject.
So why did Obama behave in this manner? I suspect he did this because Netanyahu publicly admonished Obama not enter into nuclear deal with Iran that leaves the Mullahs on the "threshold" of being able to develop nuclear weapons. This is, after all, a matter of Israel's very survival.
But Obama doesn't take criticism well and wanted to get back at him. So once Bibi was safely away from the White House and on his way back to Jerusalem, Obama sent out Earnest to do a job he wouldn't do himself.