Two rival military factions are battling for control over the country as civilians are caught in the crossfire.