Burkina Faso President Blaise Compaoré has said he will not resign after the army took control of the landlocked African country following a day of violent protests.