Follow KDKA-TV: Facebook | Twitter

PITTSBURGH (AP) — Adam Frazier hit a game-ending homer in the 11th inning, and the Pittsburgh Pirates beat the Chicago Cubs 2-1 on Sunday for a split of their four-game series.

Josh Harrison grounded out and Adeiny Hechavarria struck out before Frazier drove a 3-0 pitch from Brandon Kintzler (1-3) deep to right. It was Frazier’s fifth homer of the season.

gettyimages 1019502398 Frazier Homers As Pirates Top Cubs 2 1 In 11 Innings

PITTSBURGH, PA – AUGUST 19: Josh Harrison #5 of the Pittsburgh Pirates doubles to right field in the second inning during the game against the Chicago Cubs at PNC Park on August 19, 2018 in Pittsburgh, Pennsylvania. (Photo by Justin Berl/Getty Images)

The Cubs had a prime scoring chance against Richard Rodriguez (3-2) in the top half of the inning, but came up empty. Addison Russell was picked off third by catcher Elias Diaz, and Albert Almora Jr. struck out looking with the bases loaded with two out.

NL Central-leading Chicago managed just one run in each game of the series, but took the first two behind strong pitching performances by Jon Lester and Cole Hamels.

The Cubs lost two straight for the first time since July 27-28.

Chicago jumped in front on Kyle Schwarber’s 22nd homer off Jameson Taillon in the second. Schwarber belted a ball just foul past the pole in left field before driving the next pitch into the last row beyond right field.

Gregory Polanco hit a tying RBI double for Pittsburgh in the sixth. Carl Edwards Jr. then replaced Jose Quintana with runners on second and third and no outs, and wiggled out of the jam.

Quintana allowed four hits, struck out four and walked two. The veteran left-hander was just 1-3 with a 7.52 ERA in his previous four starts.

adam frazier1 Frazier Homers As Pirates Top Cubs 2 1 In 11 Innings

PITTSBURGH, PA – AUGUST 19: Adam Frazier #26 of the Pittsburgh Pirates reacts as he rounds the bases after hitting a walk off home run to give the Pittsburgh Pirates a 2-1 win over the Chicago Cubs in eleven innings at PNC Park on August 19, 2018 in Pittsburgh, Pennsylvania. (Photo by Justin Berl/Getty Images)

Pittsburgh had a chance to win it in the ninth after Pedro Strop walked Hechavarria and hit Frazier to load the bases. But Chicago manager Joe Maddon employed a five-man infield and Corey Dickerson grounded into a 4-9-3 double play, ending the inning.

Taillon struck out eight in six innings. He allowed five hits and walked three.

DARVISH’S DAY

Cubs right-hander Yu Darvish lasted just one inning in his rehab start with Class A South Bend, casting doubt on his availability for the rest of the year. Darvish, who has been sidelined by triceps and elbow injuries, said he would ask for an MRI when he got back to Chicago.

He wasn’t sure if would miss the rest of the year.

“I can’t really tell right now,” Darvish said. “It depends how I feel tomorrow. I really want to come back this season. I am going to work hard and do my best to try and come back.”

UP NEXT

Cubs: RHP Kyle Hendricks (9-9, 4.11 ERA) gets the ball at Detroit on Tuesday. He is 3-0 with a 4.38 ERA in his last four starts.

Pirates: RHP Chris Archer (4-5, 4.49 ERA) faces visiting Atlanta on Monday. Archer is 1-0 with a 5.65 ERA in three starts since he was acquired in a trade with Tampa Bay.

(Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)