South Africa police officer gets shot but still issues a ticket

Police officer being threatened by a man with a gun
The things that occur  in South Africa amazes me ,or rather I keep wandering why the rate of violence, rape and killing is so high in a country that is well developed . In this Photo A police officer pulled over a driver in Cape Town,to give the driver a ticket . The by passer wearing a blue cap passes the officer and later retraces his step and turns around 

to shoot the officer  after requesting for the officers gun , not withstanding the gun shot , the police officer went ahead to issue the ticket to the  initial car he pulled over , before his colleagues came around to assist him.
However , the police officer  Nizaam Alexander was later awarded the title of the City of Cape Town's departmental traffic officer of the year, 2015