Could have been worse--could have been a wasp or yellow jacket capable of multiple stings.
I think there are several commercially available bug guards that you can wear inside your mouth, and still breathe through.
I've been pretty lucky with bees this summer. None got in my helmet vents. Now that the days are getting shorter and I'm riding more around dusk, looks like I may have made it through without getting stung at least once.