Joshua O’Connor, 18, allegedly wrote detailed plans for an “infamous” attack that would get “the biggest fatality number I possibly can”