German foreign minister rules out resigning for misjudging Afghan situation