The scale is A minor.
In the run of A natural minor you will not come across E Major chord. (because you have G note in the A minor, not G# - therefore the chord should be E Minor).
HOWEVER, this doesn't happen in real life; to the western classical maestros E major "sounded" much better compared to E minor while playing in the key of A minor when resolving to the root. They named the new scale born out of such means as Harmonic minor.
So what we have here is A harmonic minor scale. Where one encounter E major chord.
And this is the reason why A minor is not exactly equivalent to the C major - though both contain the same notes. The reason being C major chord progression sounds great using E minor chord, whereas A minor chord progression sounds great with E major chord (though honestly, I think E minor also sounds good - people making these rules were just plain stuck up)
You donít get what you deserve, you get what you negotiate.