Police: Dallas officer mistakes apartment for own, kills man