Judicial custody in terror case