What do you think? Leave a respectful comment.

WATCH: Police say Gilroy festival shooter purchased rifle legally

Authorities say the shooter who attacked a California food festival used an assault-type rifle and opened fire on three local police officers who immediately responded.

Gilroy Police Chief Scot Smithee said Santino William Legan, 19, appeared to randomly target people when he fired with a rifle Sunday afternoon, the end of the three-day Gilroy Garlic Festival that attracts more than 100,000 people to the city known as the “Garlic Capital of the World. He said Legan’s motive wasn’t known.

Police responded in less than a minute and Legan turned his “assault-type rifle” on the officers, Smithee said. Three officers fired back and killed Legan, who legally purchased the weapon in this month in Nevada.

The shooting occurred on the closing day of the annual Gilroy Garlic Festival.

The gunman killed a 6-year-old boy, a 13-year-old girl and a man in his 20s. There’s no immediate word on the other 15 people who were either wounded or suffered injuries such as scrapes and bruises.

Smithee says the motive remains unknown. Police are still investigating whether there is a second suspect.

READ MORE: What we know about the Gilroy shooting

Support PBS NewsHour: