Sounds like the charging system isn't working and has ran the battery down. Because the carb most likely has a anti afterfire solenoid on the carb, the voltage got low enough for the solenoid to shut down causing the engine to die. With engine running the battery should be in the neighborhood of 13.2 volts.