This is an old episode of some sci-fi series: humans are fighting aliens in space, and at the end of the battle only one human remains in a spaceship going to the main planet of the aliens. At the end he drops a bomb to destroy the alien planet and realizes too late that the aliens sent him back to Earth instead of their planet.
Does it ring a bell to someone?