The accused was shot in self-defence after he allegedly attacked two policemen with a concealed knife while attempting to escape from custody, police said