Police officer is attacked by man armed with and shoots to defend himself.