A police officer and a woman were shot and killed after a 20-year-old man allegedly crashed a car, attacked the officer, stole his gun and shot both victims.