Police in southern Bavaria mistakenly shot a German soldier during a military exercise they mistook for a real threat.