A troupe of officers surrounded the building after the Swiss woman shut herself up in her apartment with her small dog, the ATS news agency reported.
The woman earlier fired three shots in a hallway without injuring anyone, Vaud cantonal police spokesman Pierre-Olivier Gaudard told ATS.
After several hours of discussion with police negotiators the woman agreed to open her door and gave herself up, the news agency said.
The incident took place in a small residential building located near the Vevey train station and Lake Geneva.
It is not clear what motivated the woman to behave as she did.
But her actions attracted Vaud’s elite rapid action and deterrent detachment (DARD), a group of 13 specialists based in Lausanne who are trained to combat terrorism.
The detachment has been tasked in the past to deal with bands of skinheads, armed robbers, murderers and drug dealers.
The building where the woman lived was not evacuated but the road was cordoned off from 5.30pm until 12.20am Wednesday while police dealt with the situation, ATS said.
The small dog was seized.
The incident attracted four police patrols from the Riviera region, five patrols from the local gendarmerie, a canine squad and special negotiators, in addition to the anti-terror specialists, Vaud cantonal police said in a news release.