Brito's homer in 7th sends Diamondbacks past Rockies, 8-5.

Arizona Diamondbacks' Kyle Jensen, left, congratulates Socrates Brito who crosses home plate after hitting a three-run home run off Colorado Rockies starting pitcher Jon Gray in the seventh inning of a baseball game Sunday, Sept. 4, 2016, in Denver. (AP Photo/David Zalubowski)
David Zalubowski/AP

DENVER (AP) Socrates Brito snapped a seventh-inning tie with a three-run homer, and the Arizona Diamondbacks held off a late rally to beat the Colorado Rockies 8-5 on Sunday.

Archie Bradley scattered six hits over six innings and Jean Segura had three hits in his return to the lineup for Arizona.

Bradley (6-8) struck out six but it appeared he might be the hard-luck loser. Rockies starter Jon Gray (9-7) had allowed a run in the first inning on a sacrifice fly but retired 17 of 19 batters before Arizona roughed him up in the seventh.

Trailing 2-1, the Diamondbacks tied it with three straight one-out singles. Brito made it 5-2 when he hit Gray's first-pitch fastball into the second deck in right-center field.