This is a pun on the phrase 'made an ass of himself' which means to make a fool of/ embarrass yourself, but here 'ash' is used in place of 'ass' because it sounds similar and because when you set something on fire,  there will inevitably be ash
The careless pyromaniac made an ash of himself .