Dynamite doesn't explode when exposed to fire, it burns like firewood. To cause an explosion, a blasting cap and fuse are required.
Ned Zed uses the terms "dynamite" and "TNT" interchangeably, which is a common mistake in the 20th century and after. TNT was not commonly known until after 1900.