Imran Khan sets up a rare showdown with Pakistan’s potent military