Somali government says retakes key town in heavy fighting