Arizona’s Tuffy Gosewisch scores the winning run on a broken-up double play relay in the 10th inning.

Ross D. Franklin / The associated Press

PHOENIX — Nick Ahmed provided the big hit of the day for the Arizona Diamondbacks — with his left forearm.

Ahmed was struck by a potential double play relay as he slid into second base in the 10th inning, and the Diamondbacks wound up beating the Pittsburgh Pirates 3-2 Sunday.

With runners at the corners and one out, Andy Marte hit a grounder to shortstop Jordy Mercer, who flipped to second baseman Jayson Nix for a forceout.

Ahmed came in with his arms raised up, and was hit by Nix’s throw. The ball rolled away, allowing Tuffy Gosewisch to score the winning run.

“That’s the way we’re taught to slide and play the game. Go in hard and late and it wasn’t a dirty play in my mind at all,” Ahmed said.

Manager Clint Hurdle and the Pirates lingered on the field to argue with the umpires, to no avail. There was no video review of the final play, and crew chief Ron Kulpa said the call couldn’t be challenged.

D-backs’ Goldschmidt out for rest of season

Star first baseman Paul Goldschmidt is going to miss the rest of the season because of a broken left hand. Manager Kirk Gibson announced the news Sunday, two days after Goldschmidt was hit by a pitch from Pittsburgh reliever Ernesto Frieri.

Gibson put Goldschmidt’s rehabilitation timetable at eight weeks, with the season ending in late September. No surgery is expected.