Authorities said the gunman, who has not yet been officially identified, may have attended school there before Tuesday's violence on the school campus west of Stockholm.