Alfaro gets key 10th-inning hit as Padres beat Tigers 6-4