The Maoists , who received a plurality of votes in the Constituent Assembly election , formed a coalition government in August 2008 , but resigned in May 2009 after the president overruled a decision to fire the chief of the army staff .