Pakistans ex-PM Imran Khan gets protective bail in terrorism case