Kennedy pitches Diamondbacks to 3-1 win over SD