Pakistan's ex-Prime Minister Imran Khan was shot in the foot at a rally Thursday, according to an official from his part