Updated

A.J. Burnett returned to form for the Pittsburgh Pirates Saturday. Unfortunately, closer Joel Hanrahan did not have a good night.

Milwaukee Brewers first baseman Corey Hart led off the ninth inning with his 26th home run of the season to lift the Brewers to a 3-2 win over the Pittsburgh Pirates. Hart hit the second pitch he saw from Hanrahan (4-1) into the Brewers bullpen in left field.

The Pirates lost for the ninth time in the last 12 games as Pittburgh continues to try to stay in the National League Wild Card playoff race.

Hanrahan said the pitch to Hart was a hanging breaking ball.

"The guys battled their butts off and I come in and throw two pitches and the game is over," he said. "It was poorly executed."

Pirates manager Clint Hurdle said his team was done in by 14 strikeouts.

"We have plenty of opportunities," he said. "Unfortunately, we've had some games like that this season."

But Hurdle was very pleased with the way Burnett pitched.

Burnett took a no-hitter into the sixth inning for the Pirates before giving up a two-out bloop single to Rickie Weeks. He came back to strike out Ryan Braun to end the inning.

Burnett pitched 6 2-3 innings, giving up two runs and two hits. He had nine strikeouts and four walks. It was a nice bounce back for Burnett, who had struggled in recent starts. The Pirates had lost three of his last four starts and he had recorded a 6.29 ERA over those four games.

"A.J. was great," Hurdle said. "He got back to pitching the way had had been. He gave us the start we needed."

Burnett said he felt very good on the mound, but made too many mistakes.

"I just tried to keep us in the game," he said. "This game counts as a loss. That's all that matters."

For the Brewers, Hart rescued Milwaukee after the bullpen blew its 26th save of the season.

"You can't get down," Hart said. "We've had a lot of tough luck this year. Our guys are out there battling and we just have to stay in the game and do what we can to win."

Marco Estrada gave up one run on four hits and struck out 10 in seven innings for Milwaukee. He has given up just one earned run in his last three starts. Estrada got out of a major jam in the sixth inning. With the bases loaded, Estrada struck out Pedro Alvarez looking after Alvarez fouled off four pitches on a 3-2 count.

John Axford (5-7), who got out of a bases-loaded jam in the top of the ninth inning by striking out Alex Presley, got the win for the Brewers.

The Pirates grabbed a 1-0 lead in the second inning as Alvarez hit his 27th home run of the season.

The Brewers tied the score at 1-1 in the third inning without getting a hit. Carlos Gomez walked, stole second and third base and then scored on a wild pitch.

The Brewers grabbed the lead in the seventh inning 2-1 on Gomez's RBI double.

Pittsburgh tied the game in the eighth inning off of Brewers reliever Jim Henderson. Pinch hitter Brock Holt walked and advanced to second on a sacrifice. With two out, Andrew McCutchen hit a broken bat single to right field to score Holt. It was the Brewers' 26th blown save of the season.

Notes: Brewers manager Ron Roenicke said rookie RHP Mark Rogers would be shut down for the rest of the season. Rogers, who has a 3-1 record with a 3.92 ERA, was the winning pitcher in the Brewers 9-3 win Friday..The Pirates added catcher Eric Fryer, LHP Jeff Locke, LHP Justin Wilson, RHP Chris Leroux and Holt to their roster from Triple A Indianapolis. McCutchen did not hit a home run, breaking a streak of four consecutive games with a home run at Miller Park.