Don't know this particular bird, but my guess would be he wanted to see your reaction. His next move was probably going to be based on your reaction. If you were intimidated and showed fear, he would have likely bullied you.
I have not seen Pancho go out of his way to attack anyone. The people that he has bit(none serious) have received and ignored warnings from him, and he wanted away from them. One friend wanted to see him, so I got him out. He wouldn't step up or hardly look at her. I told her, he's not into it right now and put him in his cage. Then she stuck her finger in the cage!!! and he bit! That's the worse I've seen him do. And he clearly wanted NOTHING to do with her.
He will, however, go out of his way to get a dramatic reaction and walk away laughing at the poor, faint-hearted person that he's messing with. I've never seen him be aggressive with someone who he initiates contact with, no matter how bullish he acts when initiating. It ends with him mocking or playing with them, depending on their reaction.
Edit: one caveat, if he is on mamma, and you get too close, he is jealous...and you (or me, if he can't reach you) will get nailed. Not breaking the skin, but you certainly know that he is displeased