Twin car bombings on an army base and a French-run uranium mine in Niger have left at least 20 people died.