A judge on Thursday denied prosecutors’ request to obtain a notebook that allegedly contains a violent description of the shooting that killed 12 and injured 58.