Ben Gamel’s third hit of the game Tuesday night was a go-ahead, two-run single in the sixth inning as the Pittsburgh Pirates edged the visiting Detroit Tigers 3-2.Colin Moran had a sacrifice-fly RBI in the first inning for the Pirates (50-89), who have won the first two games of the three-game series following a six-game losing streak and are 4-1 against Detroit this season.Pittsburgh starter Dillon Peters, just off the injured List (lower-back strain) and making his fourth start since coming to the Pirates in a trade, pitched four innings. He gave up two runs and three hits, with three walks and five strikeouts.Sam Howard (3-4) pitched a scoreless sixth. Chris Stratton pitched the ninth for his third save.Derek Hill hit an RBI triple and Robbie Grossman an RBI single for the Tigers (65-75), who have lost eight of their past 11.Detroit starter Wily Peralta, in four innings, gave up one run and six hits, with three walks and three strikeouts.Alex Lange (0-2) yielded two runs and three hits in the sixth.Pittsburgh took a 1-0 lead in the first. Ke’Bryan Hayes led off with a single to right-center and Yoshi Tsutsugo walked. Hayes went to third on Bryan Reynolds’ flyout and scored on Colin Moran’s sacrifice fly to right.