Rioting broke out in the Maldives after Mohamed Nasheed said he was forced to give up his office at gunpoint, raising fears of a power struggle.