BOSTON — Phil Klein allowed one run in his first major league start, Robinson Chirinos hit a solo homer and the Texas Rangers beat the Boston Red Sox 2-1 on Wednesday night.

The Rangers took a 1-0 lead in the second inning on a sacrifice fly by Elvis Andrus after singles by Adrian Beltre and Mitch Moreland. They made it 2-0 in the third when Chirinos hit his fourth homer of the season.

Klein, called up Wednesday from Triple-A Round Rock, allowed four hits through four scoreless innings before giving up a leadoff homer to Xander Bogaerts, his second of the year, in the fifth.

Texas won for only the second time in six games and split the first two games of the three-game series.

Klein (1-0), who has 23 relief appearances in his career, left with runners at first and second and one out in the sixth. Shane Victorino’s single off Alex Claudio loaded the bases before Brock Holt and Bogaerts were retired. It was the third time in the series that Boston left the bases loaded. The Red Sox left 12 men on base in the game.

Shawn Tolleson got his first career save in 123 relief appearances after escaping a first-and-second jam in the ninth.

Joe Kelly (1-3) gave up two runs and seven hits with seven strikeouts and one walk in seven innings as the Red Sox (19-21) failed in their fourth attempt to reach .500 since they were 12-12.

Klein’s first pitch of the game sailed wide and got by catcher Chirinos. But he retired 11 of Boston’s first 13 batters, allowing singles to Mike Napoli in the second and Blake Swihart in the third.

With two outs in the fourth, Napoli singled and took third on a ground-rule double by Daniel Nava. Then Klein ended the threat by retiring Holt on an infield popup.

Boston threatened again in the seventh but stranded runners at first and second.