Norway Simen Hegstad Krueger won gold in the men's Olympic skiathlon despite breaking a pole in an early crash.