Astronomers say they have the first evidence of a collision between two planets in a distant solar system.