Johnson accused Pakistan’s military establishment of keeping the former prime minister behind bars to prevent his return to political life.