Where to apply for an airport transit visa?

My residence where should I apply for visa
Kazakhstan
Embassy of Switzerland in Nur-Sultan 
Tajikistan  SDC Consular Agency Dushanbe