Why is my guy friend ignoring me?

I told my guy friend I had a crush on his best friend and he has been ignoring me since. We were cool days before and suddenly after telling him that he no longer speaks and also turns his head away when we make eye contact even when he’s walking with the friend I have a crush on.

Why is my guy friend ignoring me?
Post Opinion