North Korea warns South over military exercise