Ex-ISI chief takes early retirement from army