Sorry to hear that happened.
Hell is other people after all. It sounds like he didn't vibe with you and was intentionally doing things to get on your nerves/cause friction. Unfortunately in such cases, unless documented and reported, if you let it get to you it ends up being you that will be...