Interesting chart from the Congressional Research Service (CRS). Source: https://fas.org/sgp/crs/natsec/IF10899.pdf
OCO Deaths = Overseas Contingency Operations — meaning mostly Iraq and Afghanistan.
Non-OCO Deaths = means mostly accident, self-inflicted wounds, and illness. There are the almost 1,000 deaths a year that are going to occur in the U.S. military even when at peace. They listed accidents as 4,599 cases, self-inflicted deaths as 3,258 cases and illness/injury as 2,650 cases. Note that OCO operations also include accidents (471), self-inflicted wounded (282) and illness and injury (119). There are also 458 homicides in non-OCO and 41 homicides among the OCO deaths (along with 2,698 killed in action and 874 died of wounds).
It would have been more interesting if they started those charts in 2000 or 2001.
A few other interesting charts from that link:
The chart below is Iraq war deaths from 2006. Total Iraq war deaths since 2003 were over 4,500.
And these are Afghanistan war deaths from 2006. Total Afghanistan war deaths since 2001 add up to over 2,300.
These are, of course, only U.S. DOD deaths. There are also U.S. contractors, NATO allies, other U.S. allies, Iraq and Afghanstani forces, militia, civilians, insurgents, etc. It starts adding up.