Those dust caps pop off all the time. Check to make sure all the bearings are still inside (and that nothing else is in there that shouldn't be) and press it back in.
It would be a good idea to service your hub while you're at it because I'm sure a lot of dirt has gotten in there.