Shamba was one of the leaders of the protests that led to the May 2014 ouster of President Ankvab. After the election of Raul Khajimba as president, he participated in the 21 December by-election in Constituency no. 24 that had become necessary after Khajimba had appointed Adgur Kharazia as acting mayor of Sukhumi. On 3 November, Shamba's nomination by an initiative group was registered. Shamba failed to obtain a first-round victory, but defeated Tengiz Agrba in the run-off on 28 December.