Your son sounds like a pretty typical gifted kid to me, with a pretty typical problem.
I don't know what state you are in, or what that state's laws/requirements are for the service of the gifted. My state recognizes social/emotional needs. And I have an extra certificate in gifted education from UCSanDiego. My experience is that the academic needs are much easier to meet than the social/emotional needs. And it's vital that we meet those more difficult needs; gifted people will continue to face "not fitting in" as adults, throughout their lifetimes.
One way that works well is to cluster the gifted kids together in the same class. This allows them to interact with kids who are more like themselves, and to feel less isolated and "different." I've taught this way very successfully. Clustered classes often meet with opposition from administrators and teachers; they think it puts all of those "high test-scorers" in one classroom and makes one teacher look better than the rest. Nothing could be further from the truth; many gifted kids don't score well, and don't excel academically because those social/emotional needs have gone unmet!
The first thing for you to do is find out what your state requires in the way of service. The next thing to do is become an advocate at your school site, with your teacher and your administrator, for your son. Then find some other outlets, outside of school for his interests and for his social needs. These kids are out there; look for parent support groups, clubs, etc.
See if your state has organizations for gifted education, and if those organizations include parents. My state has a couple:
CAG is a segment of the national group
and PAGE (Parents for the Advancement of Gifted Education) which I don't have a weblink for.