A 6-year-old boy who was shot twice at a California elementary school was among the 10 wounded during a shooting rampage Tuesday. Five people, including the gunman, were killed.

Little Alejandro Hernandez was shot in the chest and leg when gunman Kevin Neal, 43, fired up to 100 rounds at the Rancho Tehama Elementary School, the Sacramento Bee reported.

The boy, who underwent surgery on Tuesday night, is expected to survive, according to a GoFundMe page set up to help his family with medical expenses.

The rampage began at around 7:50 a.m., when Neal started shooting people near his home in Rancho Tehama Reserve, a small community about 135 miles north of Sacramento.

Maniac fatally shoots 4, tries invading Calif. school

A neighbor he had been accused of stabbing in January was among those fatally shot, Tehama County Assistant Sheriff Phil Johnston said.

Neal then stole a white pickup truck, drove to the elementary school about two miles away, and rammed through the gate while parents were dropping their kids off.

Neal, who spent about six minutes firing at the school, shot out several windows and struck Hernandez.

A second student was wounded in a car on the way to school. Other children were injured by shattered glass, according to a statement issued by the Corning Union Elementary School District.

Calif. shooter previously wanted for assaulting neighbors

Quick-thinking officials locked the doors of the school when the gunfire broke out, in a monumental move that saved the lives of countless children, Johnston said.

Neal, who left the school after he couldnt get in, crashed the stolen truck, carjacked another vehicle and continued his rampage until police fatally shot him, Johnston said.

This man was very, very bent on completing what he set out to do, the assistant sheriff said.

Police offered no immediate word on the assailants motive, but a sheriffs official said the shooters neighbors had reported a domestic violence incident a day earlier. Officials did not specify who was involved or what happened.

With News Wire Services.