Nepal 's King Gyanendra dismissed the previous government and declared a state of emergency two weeks ago because of what he said was its failure to put down a growing Maoist rebellion .