The UN chief called on the country`s "defense and security forces to exercise restraint and ensure respect for the human rights and security of all Burkinabe citizens."
"Those responsible for the coup d`etat and its consequences must be held accountable."
It was the second strongly worded statement from the UN chief in two days and came after the Security Council condemned the actions in the west African nation and also demanded the release of the arrested leaders.
The Security Council on Thursday reiterated its condemnation "in the strongest terms" and threatened sanctions against the coup leaders.
It comes after presidential guard members loyal to Compaore burst into a cabinet meeting on Wednesday and seized acting president Michel Kafando, prime minister Isaac Zida and two ministers.
Ban said he was "outraged" by the attack and demanded that the leaders be immediately released.
General Gilbert Diendere, Compaore`s former chief of staff, was appointed head of a governing council, which announced a nighttime curfew and shut down the borders.
UN envoy for West Africa Mohamed Ibn Chambas met Diendere Thursday and delivered "a strong message from the secretary general" and pressed for a return to the transitional arrangement, diplomats in New York said.
Diendere ousted a transitional authority that had been charged with running the Sahel nation until presidential and legislative elections are held, the first round of which is due to take place on October 11.
More about: