A German policewoman was shot in the head when a man grabbed a police gun at a suburban station in Munich.