Somali militia, former government ally, captures two towns from federal forces