Military agreement fractures as tensions rise with North Korea