Pakistani court releases FBI agent