Unrest could distract Pakistan military