Rebel leader released after three-week detention