After occupation of Azerbaijan by Bolsheviks, he was appointed Chief of General Staff of the Red Army Corps in Azerbaijan. However, in June, 1920 he was executed by firing squad for his alleged role in Ganja revolt.