The officer had stopped at a petrol station to quickly buy a drink when he spotted an attack in progress.