I had the same problem with my 07 Tundra yesterday. Starts up but dies right after. Tried like 5 times with same result. Then had the starter just keep turning over after I released the key, wouldn't stop until I turned the key all the way back to off. After another 10 minutes of waiting and about to call tow truck I tried once more and then it runs fine after start. Had same problem about 2 years ago. Waited for about 15 minutes and all was good. Took to Toyota then and no clue what it was.