They're internal reflections of a bright light source inside the lens; from their position and the lighting on the trees, I'm going to guess there was some street lighting somewhere just out of the bottom of your shot.
Modern lenses are pretty good at eliminating this kind of internal reflection, but not perfect. If the artefacts appear on every shot, in may be that the lens does have a defect; if it's just on this one shot then it's just one of those things you have to learn to live with and work around; a lens hood may help if you weren't already using one, and remove any filters if you were using any.
With regards to your second photo, it is a significantly tighter shot than the first and doesn't even include the area where the reflections are in the first photo. I don't know the specifics of the lenses and it may be that the 16-300 is just naturally more resistant to internal reflections than the 10-24, but there's nothing there which demonstrates an actual problem with your specific copy of the 10-24.