The bomb would shower the local magma, rock and dirt with radioactive particles while a tremendous amount of pressure is being created in the chamber very quickly. There's only one place for this magma, rock and pressure to go: Out. Some of the erupting material will be lava, but that isn't the dangerous bit.