The agent did not "accidentally discharged his weapon", the agent "negligently discharged his weapon". Negligence is not the same as an accident. We have no control over accidents. This is always always always negligence.