To me it was a simple error. If it had been a foul, it was a clear second yellow. Unfortunately, he didn't touch him but you can at least see where the ref was coming from.

I think sending off Ayew would have been very harsh.