The four-star general who ruled Pakistan for nearly a decade after seizing power in 1999, attempted to usher in socially liberal values in the conservative Muslim country.