I agree. Killing a lvl 5 mindflayer so early def felt like a stretch....
Well, I think this is a bade example.
That mind flayer was a dying one with 3HP remaining and crushed under a boulder. Not exactly a fair duel between your party and the poor bastard.
And he can still put you in mortal danger if you give it a chance, as he absolutely SHOULD.