Yes, you can sell a handgun outside the country.
You need to go to a dealer and have them fill out the proper BATF forms. Their will also be a application of exportation from the State Department.
Find yourself a good dealer. He can walk you through the process.