PHOENIX — Ketel Marte hit a game-winning three-run homer with two outs in the ninth inning to lead the Arizona Diamondbacks over the San Francisco Giants 5-3 on Tuesday night.The D-backs trailed 3-1 going into the ninth but Adrian Del Castillo hit a two-out RBI single that cut the deficit to 3-2. Ryan Waldschmidt then reached on catcher’s interference.Giants manager Tony Vitello replaced Caleb Kilian with lefty Matt Gage before Marte, a three-time All-Star, turned on the second pitch he saw and launched it over the left field fence, tossing his bat while turning to look back at the D-backs dugout before rounding the bases.San Francisco’s bullpen had done great work until the ninth-inning meltdown, forcing inning-ending double plays in both the seventh and eighth.Arizona will go for the three-game sweep on Wednesday. The D-backs improved to 24-23, jumping above .500 for the first time since May 1.The D-backs took a 1-0 lead in the first inning after Corbin Carroll hit a triple into the left-center gap and scored on an error. Carroll’s helmet flew off as he rounded first and Luis Arr …