Kevin Harvick secured his first win of the season in a frantic finish to NASCAR's Toyota Owners 400 at Richmond International Raceway.