Initially I ascribed the somewhat rude way he acts to a psychological trait (I'm positive the guy has Asperger's), but then I started noticing it was more targeted at me.
Looking back, tolerating this behaviour was a disservice to both me and the company I was working at. I lost many things professionally because of that. Do not make the same mistake. The guy might be super clever, super efficient and very knowledgeable. That does not give him the right, though, to destroy people's lives. And if you tolerate this, keep in mind that there will be also others in your position later.
Btw, the description you provide matches pretty closely the guy I knew. Super smart, Asperger's and I was his victim. Before me, there was another person who was holding him in very high esteem but was also forced to resign, partly because of the unsupportive environment.