After Chechnya , a small , mountainous Muslim region on Russia 's southern border , declared its independence in 1991 , he resigned his commission and became commander of the armed forces of a country that was unrecognized .