Kim Jin-Su's extra-time header put South Korea into the quarter-finals of the Asian Cup after a 2-1 win over Bahrain.