PITTSBURGH -- ��� Adam Frazier hit a two-run homer off Milwaukee closer Corey Knebel with two outs in the ninth inning to lift the Pittsburgh Pirates to a 6-4 victory on Wednesday night.
The Pirates tied it in the eighth on a throwing error by Knebel then ended a seven-game losing streak when Frazier homered into the first row of seats in the right-field stands.
Jesus Aguilar and Domingo Santana homered for the Brewers but Milwaukee missed a chance to pull into a tie with Colorado for the second wild-card spot in the National League.
Knebel (1-2) had converted 21 straight save opportunities. Milwaukee lost for just the third time in its last 12 games.
Felipe Rivero (5-2) earned the victory in relief. Frazier finished 2 for 5 with four RBI. Starling Marte added two hits for the Pirates.