Officials chipped away at the banks of a mud pool which baby elephants had wandered into, helping them to walk free.