If this was a one time thing, it's very likely he was spooked by something. Do you usually have your tv on? I find that hamsters don't generally mind television and other electronics- especially since they constantly emit high frequency beeps that we can't hear. It could have been something as simple as a dog barking outside that set him off. A strange smell could have caused his nervousness too. It's hard to know what might have caused it, but I wouldn't worry over it now. Just remember next time he does it, take note of what's going on around you. Best wishes