Accidental. Raised, but reasonable position. It was a completely unexpected deflection - and it was the challenge that probably threw him off.
A good example of how the outcome has no bearing upon the actual decision.
Don't know that the referee was helping the situation by refusing to take the card from the mascot, to be honest. These things can be taken in good humour, after all.