Fire can absolutely trigger it under the right circumstances. It has happened in multiple ammonium nitrate explosions over the years, such as the West, TX explosion from a few years ago.
https://en.wikipedia.org/wiki/Texas_City_disaster