After reading the description attached to the graph represented on the picture, I would say that the resistance gene was present in the aphid population as a result of changes in the aphids’ local habitat by the insecticide. I consider the second option as a correct one because according to the amount of spreading of insecticide per year there was a possibility that it caused a such a change.
Do hope it will help you!