Two militants who were holed up in a flat in the Russian North Caucasus republic of Kabardino-Balkaria have surrendered to police.