Somalia's Supreme Court has ruled that President Hassan Sheikh Mohamud's one-year extension was unlawful and that he should have left office in May, ordering a political agreement within 30 days and elections within 90. The president's office moved to dismiss Chief Justice Bashe Yusuf Ahmed before the ruling was published, and opposition figures say troops were sent to the court, claims AFP could not verify. The standoff threatens the country's fragile stability as it battles the Al-Qaeda-linked insurgent group Al-Shabaab and as donors cut funding for the African Union military mission.