Could be rubbish in the carb float bowl or needle. If the bottom of the carb unscrews then remove it with the petrol turned off and check for water/grit. If you run low on petrol it sucks and rust etc down with it and can cause the engine to run until the grit blocks the jet then cuts out. Also check the air filter is clean and that there are no obstructions in the fuel line as these would all give simular symptoms to yours.Hope this helps
Gaz
Gaz, March 2010
Running lean, clean/service carb
Husqvarna man, March 2010
edit
I can answer this question...
I have a 4 stroke lawnmower that is just stalling ?