Police in the Maldives have arrested former President Mohamed Nasheed, accusing him of illegally detaining a senior judge more than three years ago when he was in power.

Nasheed was arrested at his home Sunday in Male, the capital of the Indian Sea archipelago.

Maldivian Police Arrest Former President

As he was being arrested, hundreds of his supporters clashed with police, who fired tear gas at them to keep them at bay.

Maldivian Police Arrest Former President

Nasheed lost a controversial 2013 election to current President Abdulla Yameen.

Maldivian Police Arrest Former President

The arrest warrant for Nasheed described him as a risk to flee the country.

Last week, a prosecutor dropped charges of abuse of power against him for allegedly ordering the arrest in early 2012 of one-time chief criminal court judge Abdulla Mohamed, who was accused of corruption. But a new charge involving the same incident was filed Sunday under tougher anti-terrorism laws.