South Korea were taken to extra-time by Bahrain in their last-16 fixture at the Asian Cup, before prevailing 2-1.