Qusai Abu Arar, 20, was indicted on Saturday for shooting at a school full of children in Ar'ara BaNegev, according to the Southern District Attorney's Office.
Abu Arar arrived at the Technological School in the city in southern Israel in May in a car, despite not having a license, according to the indictment. The suspect intended to meet with and talk to a relative who was learning at the school.
After the principal refused to let him do so, Abu Arar left the building and, about an hour afterwards, returned to the school, got out of his vehicle while carrying a weapon without a permit and began shooting toward a caravan where a guard and a number of other people were standing.
The prosecution is seeking to detain Abu Arar until the end of the legal proceeding against him.
"Offenses committed with firearms have become a scourge of the state and the region and claim many casualties," said the prosecution in the detainment request. "If the respondent is released, there is a risk that he will return and commit such offenses and endanger the public."