Pakistan army chief gets three-year extension