A tanker carrying fuel to flood-ravaged parts of northwest Queensland has exploded west of Barcaldine, closing one of the main routes to the area.