The Belarusian president, Lukashenko, brokered a deal for the safety of the rebels.