Former Pakistan Prime Minister Imran Khan was arrested by military forces in Islamabad on Tuesday while in court to face corruption charges, adding to his legal woes after being ousted in April last year and ratcheting up tensions as he campaigns against his successor ahead of an election in October.