This is a pretty common and silly thing that happens to a lot of people growing up.
Friendships between people of opposite sexes while in an adolecent phase can be rather shaky or awkward at moments - and chances are this is one of those awkward moments where he probably likes you as more than friends but doesn't know what to do with his feelings.
This situation will most likely resolve itself if you just leave him alone for a week or two. But saying this, its up to you to decide what you want to do going forwards. Do you like him? Would you date him?
Boys have a tendancy to orbit girls they like without ever confessing their feelings - whether they stay "friends" with the girl or not after they don't get what they want is a coin toss.
Though would you call that a real friendship in the first place?