It is possible that the injection you were given was a steroid (I was given steroid cream when my cheek swelled up due to an allergic reaction).
Unfortunately, steroids are one of the things which cause our BG to rise.
This impact may hang around for a few days but, hopefully, you will go back to your normal levels soon.
Fingers crossed your swelling and itching has gone (a wasp bite sounds horrendous).
There are many things which affect our BG as well as food and drink: exercise, drugs (as you have seen), stress, ...
It is possible the stress of your sting was also causing your BG to rise.