The horrific moment a man set a hospital ward ablaze in an attack on another patient, killing three including himself, has been caught on CCTV.