About 20 officials were seized when they arrived at the Aletaik monastery, residents said. Four of their cars were also set on fire.
Shops in the town were closed as hundreds of people poured into the streets to applaud the monks after they captured the officials.
"I fully support the monks. They were just peacefully praying for the people. The monks are absolutely right," one resident said.
"I'm surprised that these security people would dare to harm Buddhist monks in this country."Standoff
Five of the officials were released after about five hours, and the others were freed 45 minutes later, witnesses told AFP news agency.
|"Young monks are very militant and will fight back. Once the monks are beaten, people could also join"|
The monks finally decided to end the standoff on Friday, opening their gates out of concern for the health of a senior abbot, who needed to receive food and medicine, one resident said.