As a leading Libyan military figure carries out a comprehensive campaign to uproot extremism in his country, Washington and its allies will have to find a way to balance his efforts against the need to curb growing violence and nurture a pluralistic state.