Hi,
From your info above, it sounds as though the fuel system is being shut off, which in turn causes the engine to die. The fuel system is controlled through the Electronic Control Unit (ECU). This means that a bad sensor is most likely giving the ECU bad info which causes it to freak out and disable the fuel system.
Common sensors to check when stalling occurs:
> Crankshaft Position Sensor (CPS)
> Throttle Position Sensor (TPS)
> Oxygen Sensor (02)
> Manifold Absolute Pressure Sensor (MAP)
Hope that helps

-Nick