A teenager has died after being struck by lightning near the summit of Germany's highest mountain.