Updated at 6 p.m.: Revised with details from the Associated Press.

A 15-year-old girl was hospitalized Monday morning after a shooting at a school in the Ellis County town of Italy.

A 16-year-old boy was taken into custody, the Ellis County Sheriff's Office said.

The suspect was a student who left the Italy High building immediately after firing several shots with a .380-caliber handgun in the cafeteria, officials say. Usually 45 to 55 students are in the cafeteria at that time.

Parents pick up their children at Stafford Elementary school after a shooting at Italy High School on Monday, Jan. 22, 2018, in Italy, Texas. (Photo © Chris McGathey)

Cassie Shook, a 17-year-old junior at the school, told The Associated Press that she was driving up to the building when she saw "the doors fly open and everyone screaming and running out of the building." She said she was angry when she learned who the suspect was because she'd complained about the boy at least twice to school officials, including to a vice principal.

"This could have been avoidable," she said. "There were so many signs."

Shook said she first went to school officials after the boy allegedly made a "hit list" in eighth grade and her name was on it. Then last year, the boy got angry during a class and threw a pair of scissors at her friend and later threw a computer against a wall, she said.

"I ran out of the classroom screaming, telling everyone to hide because I was scared," Shook said.

The Ellis County Sheriff's Department confirmed the shooting about 8:30 a.m. and said students were moved, "under guard," to a different location.

Parents were able to reunite with their children at Stafford Elementary School, Italy ISD superintendent Lee Joffre said.

The injured girl, whose name was not released, was taken to Parkland Memorial Hospital in Dallas. Her condition also was not provided.

Parents pick up their children at Stafford Elementary school after a shooting at Italy High School on Monday, Jan. 22, 2018, in Italy, Texas. (Photo © Chris McGathey)

Italy, 15 miles south of Waxahachie, bills itself as "the biggest little town in Texas." It has a population of about 2,000.

KXAS-TV (NBC5) reported a "massive" police presence at the school.

The Ellis County Sheriff's Department was leading the investigation of the shooting. Italy police, the Hill County Sheriff's Office, the Texas Department of Public Safety and Texas Rangers were assisting.

The Associated Press and staff writers Jacob Prothro and Tom Steele contributed to to this story.