Rokita wins race for attorney general