Man set fire to the block of flats where his ex-girlfriend lived