After the Red Army invasion of Azerbaijan and the suppression of the anti-Soviet uprising in Ganja, Mirza Kazim Qajar was arrested, and executed by the Bolsheviks in the Ganja.