(CNN) Uganda's pop star-turned-MP Bobi Wine was "violently arrested" and "bundled into a police ambulance" Thursday as he was on his way out of the country, his lawyer said.

"The Uganda Police have violently blocked Hon Bobi Wine from traveling outside of the country in spite of the court declining to do so when being released on bail earlier in the week. This is absurd to say the least," lawyer Nicholas Opiyo said on Twitter.

Wine, whose real name is Robert Kyagulanyi, was first arrested by the military on August 15 after rioting broke out between rival parties ahead of a local parliamentary election.

He has been in and out of court since then, most recently having been freed on bail Monday.

Wine was on his way out of the country to seek medical treatment in the United States and was prevented from boarding a flight at around 8 p.m. local time, according to his legal team.

Read More