LA PAZ, Bolivia (CNN)  -- An agreement aimed at ending violence and bloodshed that has erupted in Bolivian provinces has been reached between President Evo Morales and provincial governors, officials announced Tuesday.





Leopoldo Fernandez Ferreira, governor of Pando province, talks to reporters a day before his arrest.





The announcement on Bolivian television came just hours after the military arrested the governor of one of five provinces where violent clashes have occurred in the past three weeks, saying he had committed genocide in the deaths of 30 peasants.





Gov. Leopoldo Fernandez Ferreira of Pando province was picked up at his office in Cobija and placed on a military plane for La Paz, the Bolivian capital. He did not resist.





Groups in Pando and four other Bolivian provinces, backed by the local governors, have demanded greater autonomy and clashed with supporters of the federal government. Federal authorities say the 30 people who were killed Friday were federal supporters.





Bolivian President Evo Morales said the arrest was legal and constitutional.





"This arrest is within the framework of the state where it happened, within the constitutional framework and no one can oppose it," Morales said at a news conference at the presidential palace.





Officials said more arrests are possible.





"We will work day and night to avoid any more deaths or terrorist acts," presidential minister Juan Ramon Quintana said in another news conference. "We will do everything we can to arrest those who have committed terrorist acts."





As news of Fernandez's arrest spread across the country, many citizens talked about who else could be on the government's "black list," as they were calling it.





Besides demanding greater autonomy, opposition leaders in the five provinces want the cancellation of a constitutional referendum that would give the president more power.





The opposition also is angry over tax money that Morales is diverting from the provinces to fund programs for the elderly.  Learn more about the Republic of Bolivia »





Morales has said the opposition leaders are trying to overthrow the government.





"This is a coup in the past few days by the leaders of some provinces, with the takeover of some institutions, the sacking and robbery of some government institutions and attempts to assault the national police and the armed forces," Morales previously said.





Opposition leaders say they merely want their demands met.





On Tuesday, they warned that Fernandez's arrest could destroy a shaky truce with the government.





The arrest came hours after Morales returned Monday night from a quick trip to Chile, where presidents of the 12-nation Union of South American Countries met to discuss the Bolivian crisis.  Watch leaders meet to discuss Bolivia »





Confronting its first crisis, the four-month-old UNASUR voted to create a commission to support Morales' democratically elected government, said Chile's president, Michelle Bachelet.





She read a nine-point statement on Chilean TV that calls for the support of human rights and democracy and the preservation of Bolivia's territorial integrity. The statement condemns any attempts to overthrow the government.





It also said the new commission will investigate the peasants' deaths.





UNASUR is modeled on the European Union and aims to politically and economically integrate South American countries.





On Tuesday, the United States announced it is organizing emergency evacuation flights for Americans in Bolivia and urged them to leave if the situation permits. A statement from the U.S. Embassy in La Paz said U.S. citizens need to sign an agreement to pay later for the cost of the flight.





The embassy said some commercial flights are still available, although American Airlines suspended some flights until Sunday.





The United States also continued to urge Americans to delay traveling to Bolivia.





Morales expelled the U.S. ambassador last week, accusing the American government of inciting the violence. The expelled ambassador, Philip Goldberg, called the charges "false and baseless" and said Bolivia was making a "grave mistake."





On Monday, the Peace Corps temporarily suspended operations in Bolivia because of "growing instability" there. All Peace Corps volunteers in the country have been moved to Peru.





"Our first priority is the safety and security of our volunteers
Where were the peasants killed? What is the deal aimed at? What governor was accused? What has the governor been accused of? Who accuses governor? Who killed friday? Who was killed on Friday? Who created the Deal?
Pando province ending violence and bloodshed Gov. Leopoldo Fernandez Ferreira he had committed genocide in the deaths of 30 peasants. President Evo Morales federal federal President Evo Morales and provincial governors,
question: Where were the peasants killed?, answer: Pando province | question: What is the deal aimed at?, answer: ending violence and bloodshed | question: What governor was accused?, answer: Gov. Leopoldo Fernandez Ferreira | question: What has the governor been accused of?, answer: he had committed genocide in the deaths of 30 peasants. | question: Who accuses governor?, answer: President Evo Morales | question: Who killed friday?, answer: federal | question: Who was killed on Friday?, answer: federal | question: Who created the Deal?, answer: President Evo Morales and provincial governors,