Wildlife protection officials in Anuradhapura engaged in a three-hour operation to free an elephant which had fallen into a well.