Where to apply for a national visa?

My place of residence My visa application should be submitted to
Kazakhstan  Embassy of Switzerland in Nur-Sultan
Tajikistan   SDC Consular Agency Dushanbe