I've had this happen.
Have you ran your tank to empty lately? it's fuel pump related. You might hear the fuel pump but it might not be pumping enough fuel to the carbs.
This started to happen to me gradually over time and I eventually picked it up before it left me stranded.
The reason why it's able to start up again is because the pump is only able to fill enough to run on the idle fuel circuit. Once it's on main fuel circuit it's not enough and stumbles and dies off.
Hope you made it home.