Sri Lankan military liberates key town