I saw something very similar once flying over central Europe in a clear blue sky in the middle of the day.
I initially thought it was a shooting star, then I thought it was a rocket and after thinking about it and discussing it with my colleague, we decided it must have been some kind of space debris or a meteor which entered the Earth's atmosphere and burnt up.
It was like a firework.