A police officer has been fatally shot, another person is wounded and the suspect remains barricaded inside an apartment in suburban Dallas.