There was an embarrassing moment for a Bora-Hansgrohe rider as he celebrated victory during the Challenge Mallorca 10km too early.