subsequently he was military major of huamanga and later of ica