Police: Dallas shooter felt attack was 'righteous'