Remarkably, Hill stayed in the game and pitched two more innings after the play.
The Dodgers struck first with a run in the bottom of the first inning, but the Padres tied the game in the top of the third thanks to an RBI double by Hunter Renfroe. This comes just an inning after Richard hit Justin Turner in the knee to load the bases.
The Padres went up 2-1 in the fourth, when their starter Jhoulys Chacin helped his own cause by dumping a single to right field.
It was also the 16th home run allowed by Ryu in 2017, his single season career high.
Ryu tossed a season-high 108 pitches, only 68 of them for strikes.
Ryu had been 4-1 with a 2.19 ERA in his six previous starts against the Padres, with 36 strikeouts in 37 innings. Cody Bellinger extended the lead to 5-3 with a solo home run in the bottom seventh.
Closer Kenley Jansen threw a scoreless ninth to preserve the 6-3 win.