Dallas officer kills man after entering wrong apartment