Red Army troops under the command of Bolshevik general Mikhail Frunze attacked the city. After four days of fighting, the emir's citadel (Arc) was destroyed, the Red flag was raised from the top of Kalyan Minaret, and the Emir Alim Khan was forced to flee to his base at Dushanbe in Eastern Bukharan, and finally to Kabul, Afghanistan. A nearby anti-Bolshevik stronghold in the Tadjik/Moslem village of Khangir (qingir) declared its independence shortly afterwards, but soon surrendered after a 14-day siege by Russian and Bokhkori Bolsheviks. It was then quickly re-integrated back into Communist Bokhorah. The Bukharan People's Republic was proclaimed on 8 October 1920 under Faizullah Khojaev. The overthrow of the Emir was the impetus for the Basmachi Revolt, an anti-Russian rebellion. In 1922, most of the territory of the republic was controlled by Basmachi, surrounding the city of Bukhara. Joseph Stalin would later purge and exile many of the local Bukhori people as well as most of the local Jewish community from the former Bukharan People's Soviet Republic. Prior to the establishment of the state of Israel, the Bukharian Jews were one of the most isolated Jewish communities in the world. Khorezm People's Soviet Republic and SSR The Khorezm People's Soviet Republic was created as the successor to the Khanate of Khiva in February 1920 and officially declared on 26 April 1920. On 20 October 1923, it was transformed into the Khorezm Socialist Soviet Republic. The Khorezm SSR only survived until 17 February 1925, when it was divided between Karakalpak Autonomous Oblast, the Turkmen SSR, and the Uzbek SSR as part of the reorganization of Central Asia by Moscow according to nationalities. Kara-Kirghiz Autonomous Oblast The Kara-Kyrgyz Autonomous Oblast (Кара-Киргизская АО) was created on 14 October 1924 within the Russian SFSR from the predominantly Kazakh and Kyrgyz parts of the Turkestan Autonomous Soviet Socialist Republic. On 15 May 1925 it was renamed into the Kyrgyz Autonomous Oblast. On 11 February 1926 it was reorganized into the Kyrgyz ASSR. On 5 December 1936 it became the Kyrgyz SSR, one of the constituent republics of the Soviet Union. Karakalpak Autonomous Oblast The Karakalpak Autonomous Oblast was created on 19 February 1925 by separating lands of the ethnic Karakalpaks from the Turkestan Autonomous Soviet Socialist Republic and Khorezm People's Soviet Republic. Initially located within the Kazakh Autonomous Socialist Soviet Republic, the Karakalpak A.O. was transferred to the RSFSR from 20 July