Brooklyn trial court, attorney erred in criminal case, Appellate Division dismisses indictment