Militant factions clash in Somalia