Collision, destroy and create sprite

When the sprite collides with another sprite the second sprite is destroyed and another sprite is created in another position. How do I do it?