South Korea to restore security ties with neighbor