South Korea is caught between maintaining strong ties with China — its biggest trading partner — and the U.S., its main military ally.