SKorea responds to Japan military pact with caution