That's the old X-sync problem. You set the shutter speed too fast. Everyone's done it at least once, I think. There should be a shutter speed indicated by an "X" or a lightening bolt, or maybe just a regular shutter speed around 1/60 sec. marked for flash sync.