A bus has burst into flames in western Sydney, forcing a number of schoolchildren and the driver to flee the scene.