Electrodynamics of the quantum anomalous Hall state in a magnetically doped topological insulator