BOSTON — Shin-Soo Choo homered on David Price’s first pitch of the game, and Elvis Andrus scored to break a sixth-inning tie as the Texas Rangers beat the Boston Red Sox 7-2 on Tuesday night to snap a three-game losing streak.

Robinson Chirinos added a three-run homer in the ninth as the Rangers scored four runs off All-Star selection Craig Kimbrel. The Red Sox closer was one of six Boston players selected for the AL roster. Texas had two.

Price (8-6) threw 46 pitches in first two innings – 45 after Choo drove the first one of the game out to center. Texas loaded the bases on two singles and a walk before Prince Fielder struck out looking — drawing a mock cheer from Boston fans.

But the Rangers managed just one more run in the inning. Price settled down and the Red Sox tied it before Andrus singled and scored to make it 3-2 on Rougned Odor’s double.

In all, Price allowed three runs, eight hits and a walk, striking out 10 in eight innings. He fanned Ian Desmond in the fifth for his 1,500th career strikeout and posted his sixth game of the season with 10 or more strikeouts.

Rangers starter A.J. Griffin left after four innings, and Cesar Ramos (3-3) pitched 1 1/3 scoreless innings for the win.

Mookie Betts, Dustin Pedroia and Travis Shaw had two hits apiece for the Red Sox. Jackie Bradley Jr. homered for Boston, which had won two straight.

Desmond and pitcher Cole Hamels made the All-Star team for Texas. Boston designated hitter David Ortiz, in his final season, will make his 10th All-Star start, and joining him in the lineup will be outfielders Betts and Bradley and shortstop Xander Bogaerts. Knuckleballer Stephen Wright was also selected.

TRAINER’S ROOM

Rangers: Choo left the game in the fifth with lower back stiffness. … 1B Mitch Moreland (right calf tightness) was not in the starting lineup for the third straight game. … With three starters on the DL, Texas called up RHP Jose Leclerc from Triple-A Round Rock and designated LHP Michael Roth for assignment. Leclerc, 22, has split time between Double-A Frisco and Round Rock this season and has never played in the majors.

Red Sox: Boston activated veteran C Ryan Hanigan (neck strain) from the 15-day DL following a rehab stint with Triple-A Pawtucket. The Red Sox optioned C Christian Vazquez to Pawtucket after Monday night’s game against Texas.

UP NEXT

Rangers: LHP Martin Perez (7-4, 3.39 ERA) is 6-0 with two no-decisions in his last eight starts. Perez, who leads the Rangers with 17 starts already, hasn’t taken a loss since May 18, at Oakland.

Red Sox: Wright (9-5, 2.42) gets another shot at the Rangers, who tagged him for eight runs and seven hits over 4 2-3 innings in a loss at Texas on June 25.