Malian President Ibrahim Boubacar Keita, detained by mutinous Malian soldiers in a military camp, has announced his resignation and the dissolution of the National Assembly and Prime Minister Boubou Cisse's government.

"I have decided to quit my functions, all my functions from this moment ... I declare the dissolution of the National Assembly and the government," Keita said in a brief declaration broadcast by national television ORTM on Tuesday.

"I wish no blood to be shed to keep me in power," he added.

Keita, who was elected President in 2013 and reelected five years later, was arrested along with Prime Minister Cisse by mutinous soldiers near Bamako on Tuesday morning, local media reported.

Anti-president protests in Bamako, Mali
Anti-president protests in Bamako, Mali Twitter

The Economic Community of West African States (ECOWAS), the African Union, the European Union and the United Nations have condemned the arrest of Keita by mutinous soldiers and demanded restoration of the constitutional order, reported Xinhua news agency.

"The Secretary-General is following with deep concern the unfolding developments in Mali, including the military mutiny which culminated in the arrest of President Ibrahim Boubacar Keita and members of his government earlier today in Bamako," said a statement issued by Stephane Dujarric, spokesman for United Nations Secretary-General Antonio Guterres.