"Really, dude? I am so tired of you asking that. It's none of your business if I'm ok or not. Stop asking."
Tell him directly first. Then if he persists go to your boss or HR and tell them you think probably he is trying to be nice but keeps interrupting your work and won't stop, and the distractions are starting to interfere with your work.