CIA used 'illegal, inaccurate code to target kill drones'