GRAFENWOEHR, Germany — Police in southern Bavaria mistakenly shot a German soldier this week after their response to reports of a man carrying a weapon took them into a unilateral military exercise.