The Israeli military said it had only fired "warning shots into the air" after Lebanese soldiers entered an area that was "not part of the pilot area".