Somali militants kill soldiers, capture towns

27