Cats will occasionally throw up, especially if they've been munching on grass or such outside. Unless it's happening a lot, that's not something to worry about.
Also, if you give the cat some space, he'll probably clean himself up unless he's very ill. It's not fun for us to think about cleaning ourselves up by licking, but it is how cats do it, and chances are he'll get himself tidy very quickly.
The only reason I would worry is if he doesn't clean himself up, or if he's vomiting a lot.
Take a deep breath and just let him be. <3