Were you using flash or the autofocus-assist lamp? Both have a failsafe that disables the shutter if they get too hot. Or maybe the shutter got too hot...?
Then it almost definitely was the on-camera flash overheating. It depends on the flash power setting, but you can usually take 5-20 photos before the failsafe kicks in.