based on your sig, I'll assume you bought an 04 blade. Get the service manual (1000rr.net) and have a look at the wiring diagram. On the 08 there are only a few things that would typically cause this, I imagine they are similar for the 04
1.) faulty tip over sensor
2.) kick stand sensor
3.) kill switch
4.) faulty/phantom ground
5.) battery/battery connection
6.) fuel supply
The tip over sensor, kill switch and kickstand switches can be bypassed. Eliminate the variables 1 at a time by by-passing them (temporarily of course, do not ride without these). Use a multi meter to verify your voltage after your terminals. I had an issue on the 08 with poor terminal connections on the battery. Check your fuel supply pressure and hose for pinches.
You really need to provide more detail, is the behavior consistent, i.e. you go WOT, is it intermittent, do you loose your dash/lights/power, is it dimming or just a shut off, does power come back on right away or intermittently? How does the engine fire? with a vengance or does it turn over a bunch of times first and feel weak?
If its firing up right away after it dies, faulty sensor/kill switch, phantom ground or loose connector, use some di-electric grease. If its only dying WOT, likely fuel supply. If it turns over weak, battery. These are just suggestions.
Doesn't sound like thats the problem if you were already ripping down the street and your bike just shuts off. Hope it doesn't happen again though.