Nebraska's chief justice to retire in October