Andrea Kimi Antonelli secured his maiden Formula 1 victory at the Canadian Grand Prix in Montreal, driving for Mercedes.