Just remember the starting cords of the object and on object release check if new position is wrong or right. If it is wrong then use lerp function or simply Move at angle. Depends what do you mean by "smooth"
Can you write lerp function for me. My sprite actual position is 577, 480 and need to drag it back to it's actual position from 833, 192. I am creating a drag and drop game and when user drag the sprite to wrong choice then sprite get back to its actual position with a smooth transition effect.