The United Nations Security Council has condemned a mutiny in Mali and urged the soldiers involved to immediately release all government officials they had detained and and return to their barracks without delay.

The 15-member council was briefed after soldiers ousted Mali's President Ibrahim Boubacar Keita in a coup.

The soldiers said they would oversee elections within a "reasonable" time.

In an address on state television, Mr Keita said he had resigned and that both the government and the national assembly would be dissolved.

"I would like at this precise moment, while thanking the Malian people for their support throughout these long years and the warmth of their affection, to tell you of my decision to relinquish my duties," he said.

The 75-year-old appeared calm as he said he had no choice but to resign with immediate effect.

"If it pleased certain elements of our military to decide this should end with their intervention, do I really have a choice?" he said of the day's events.

"(I must) submit to it, because I don't want any bloodshed."

The African Union has suspended Mali's membership in response to the coup.

In a statement it said the suspension would last until constitutional order was restored and demanded the release of Mr Keita and other senior officials.

A senior government official in Mali said Mr Keita and Prime Minister Boubou Cisse are both being held in the town of Kati, near the capital Bamako.

The mutineering soldiers seized control of an important military base in Kati before yesterday's coup, which followed a months-long political crisis in the West African nation.

Before yesterday's coup Mali had already faced a jihadist insurgency and months of mass protests.

All Irish personnel involved in an EU Training Mission in Mali [EUTM] and in a UN Multidimensional Integrated Stabilisation Mission in Mali [MINUSMA] are reported to be safe and accounted for.

They are said to be observing "necessary force protection and security protocols".