Two rival military factions are fighting each other in the capital, with passenger planes coming under attack.