Germany 's top army officer has resigned over an investigation into a September air strike in Afghanistan in which civilians were among those killed .