A political crisis in the Maldives deepened after a former president and two justices of the Supreme Court were arrested.