With the country wracked by insecurity and uncertainty , Musharraf--a key U.S. ally--has lurched from one political misstep to another , belying the reputation he enjoyed in the West as a savvy leader able to tackle Islamic extremism and set Pakistan on the path to democratic reform .