Ecuador's President Rafael Correa has said there will be "no pardon or forgiveness" for those involved in a police rebellion against him.
Mr Correa had to be rescued by the army from a hospital in the capital, Quito, after he was trapped there for several hours by disaffected police.
The president was being treated after inhaling tear gas fired by police who were protesting at austerity measures.
Two people died and dozens were injured in the unrest, officials said.
The president and his supporters said the police revolt over a new law cutting benefits for public servants amounted to an attempted coup.
A state of emergency has been declared.
Mr Correa said there would be "a deep cleansing of the national police", and that he would "not forgive nor forget" what had happened.
The commander of Ecuador's police force has since resigned, a police spokesman said on Friday.
South American heads of state held an emergency meeting in Argentina and called for those behind the revolt to be tried and punished.
Mr Correa, a 47-year-old US-trained economist, was elected in 2006 and won a second term in 2009 - despite a decision to default on $3.2bn of global bonds which caused widespread fiscal problems for the government.
BBC News