If it's not hot to the touch, or you can't sit down w/o pain...it's probably not infected. If it is hot etc... it might be infected.
It's more than likely just localized internal swelling inside your buttocks. Moving the needle around even fractionally while injecting can cause this.
Goes away in about a week.