Man does that story bring back memories. When I was 5(Very long time ago)we had a big tom outside our bedroom window on the porch roof. I opened the window and my brother grabbed some of my mom's homemade whole wheat breead and we laid a trail of crumbs.
To our surprise the the tom stepped inside the window and I slammed the window shut. Man did all heck break loose then(but nothing compared to your bird).
Worst part was my mom wouldn't let us keep him.
Hold that against her to this very day,