Space scientists have captured a comet breaking into pieces by accident.