That sucks, give it a couple days to recover, and start exercising again. Do just enough to be on the edge of it hurting, then again, then again. At the end of the work out, ice it, maybe take an ibuprofen. Don't overdo it, i.e. it shouldn't hurt a lot, stop when you just feel a bit of pain...