The prosecution has rested following day four of testimony in the capital murder trial of a man accused of killing a Sheffield police officer in 2021.