New York attorney general threatens lawsuit over fracking