Chapman walks in winning run, Red Sox beat Yankees 5-4

The Boston Red Sox celebrate after winning over the New York Yankees on a walk by Andrew Benintendi with bases loaded during the ninth inning of a bas

Boston Red Sox's Hanley Ramirez celebrates his two-run home run during the third inning of a baseball game against the New York Yankees in Boston, Fri

New York Yankees' Gary Sanchez (24) celebrates his two-run home run that also drove in Brett Gardner, right, during the fifth inning of a baseball gam

New York Yankees' Chase Headley (12) celebrates with Aaron Judge (99) after scoring on line drive by Gary Sanchez during the third inning of a basebal

Boston Red Sox's Hanley Ramirez, center, celebrates his two-run home run that also drove in Xander Bogaerts as New York Yankees' Gary Sanchez looks on

New York Yankees' Jordan Montgomery pitches during the first inning of a baseball game against the Boston Red Sox in Boston, Friday, July 14, 2017. (A

New York Yankees' Jordan Montgomery throws to first base on the ground out by Boston Red Sox's Hanley Ramirez, left, during the first inning of a base

New York Yankees' Gary Sanchez, left, runs into Boston Red Sox's Xander Bogaerts while chasing the ball after Bogaerts third-strike swing during the f

Boston Red Sox's Drew Pomeranz pitches during the first inning of a baseball game against the New York Yankees in Boston, Friday, July 14, 2017. (AP P

New York Yankees' Adam Warren (43) and Jonathan Holder (65) warm up before a baseball game against the Boston Red Sox in Boston, Friday, July 14, 2017

Boston Red Sox's Dustin Pedroia, right, falls on the ground in front of Xander Bogaerts while trying to field the line-drive single by New York Yankee

Boston Red Sox's Dustin Pedroia, right, celebrates after scoring the winning run on a walk by Andrew Benintendi with bases loaded during the ninth inn

BOSTON (AP) — The Yankees and Red Sox have had their share of games decided by late rallies and towering home runs.

This time, it came down to a free pass.

Aroldis Chapman walked in the winning run without recording an out in the ninth inning, handing Boston a 5-4 win over New York on Friday night.

The Yankees hard-throwing closer gave up two runs in the ninth for his third blown save. New York entered tied for the major league lead with 17 blown saves.

"That happens to all pitchers," Chapman said. "Sometimes you get into a game and you have an inning like that where you're not as sharp as you would like to be."

Mookie Betts and Dustin Pedroia started the comeback with consecutive singles and a successful double steal. Betts scored when second baseman Ronald Torreyes booted Xander Bogaerts' groundball.

After an intentional walk to Hanley Ramirez, Chapman (2-1) walked Andrew Benintendi on five pitches to bring home Pedroia.

"That 3-1 pitch, I was about 90 percent take," Benintendi said. "It was gonna take a perfect pitch to swing at it."

It was New York's fourth walk-off loss of the season. The Yankees fell for just the second time this season when leading after eight innings. Chapman entered with a 6.75 ERA over his past five appearances.

Robby Scott (1-1) got the win for the Red Sox, who got their first victory over the Yankees at home this season. It was Boston's first game-ending walk since Sept. 23, 2000 against Baltimore.

Gary Sanchez had a two-run home run and an RBI single for the Yankees.

New York, which entered the four-game series 3 1/2 games behind AL East-leading Boston, had won four of the five previous meetings against its rival this season.

Drew Pomeranz was on the mound for Boston's lone victory this season against the Yankees last month in New York. Pomeranz had seven strikeouts Friday, but allowed some pitches to get up in the zone. New York took advantage, scoring three runs in the fifth.

While Pomeranz was off, manager John Farrell liked the relentlessness his teammates showed at the plate to stay in the game. Most of the praise went to Ramirez. He had two hits and put the Red Sox up early, crushing his 14th home run over the left-center field fence in the third.

The Red Sox had a chance to get the lead back with runners on the corners in the seventh, but Benintendi's long fly ball to center was reeled in on the warning track by Jacoby Ellsbury.

The Yankees struck first, getting on the board in their half of the third inning. Sanchez hit a hard liner that deflected off Bogaerts' glove at shortstop and fell into left field, scoring Chase Headley. New York pulled within 3-2 in fifth on an RBI single by Brett Gardner to set up Sanchez's go-ahead homer.

With Yankees first baseman Greg Bird still out with an injured ankle, Garrett Cooper made his major league debut a day after coming over in a trade with Milwaukee. Cooper became the eighth player to start at first for New York this season.

The Yankees also said that starting pitcher Michael Pineda could be facing Tommy John surgery on his pitching elbow.

___

More AP baseball: https://apnews.com/tag/MLBbaseball

___

Follow Kyle Hightower on Twitter at http://www.twitter.com/khightower