A police officer has suffered burns as a petrol-fuelled fireball sent flames flying during a dramatic arrest near Royal Perth Hospital.