An elephant that found itself trapped in an agricultural well in Sri Lanka is free to roam again after a rescue operation.