The military rulers had been demanding the exit of envoy and troops after Macron refused to recognise the July coup.