It would appear he broke the rules and smuggled the weapon into the base and murdered fellow soldiers. The is a fairly detailed article on Wikipedia, that sounds reasonably well researched.
http://en.wikipedia.org/wiki/Fort_Hood_shooting I hope this helps.