President Bah Ndaw and Prime Minister Moctar Ouane, tasked with steering the return to civilian rule after a coup last August, resigned in the presence of mediators visiting the military base where they were being held, said Baba Cisse, special advisor to junta boss Assimi Goita.