OK, I was having the same problem as from this thread:
http://www.lawnmowerforum.com/small-engine-mower-repair/5660-b-s-500-series-motor-wont-stay-running.html
Not sure if it's the same model, but parts look the same.
I followed the help in there, replaced the diaphragm and air filter. If I...