DETROIT (AP) — Jorge Alfaro capped San Diego’s three-run 10th inning with a two-run single, and the Padres beat the Detroit Tigers 6-4.

Luke Voit finished with three RBIs for San Diego after he was hit by a bases-loaded pitch from All-Star Gregory Soto in the 10th.

After Matthew Batten struck out swinging for the second out, Alfaro drove in Jake Cronenworth and Manny Machado with a single to right.

Detroit got one back on Jeimer Candelario’s RBI double in the bottom half. But Nick Martinez retired Willi Castro on a fly ball to center, earning his fourth save.