An alleged would-be thief has suffered life-changing injuries after a homemade bomb was used to blow up an ATM in Melbourne's CBD overnight.