Student admits middle school gunman hoax