A man shot in the Chapeltown area of Leeds is under armed police guard in hospital where he is being treated for "serious facial injuries".
Officers said the incident on Monday evening, in Savile Place, was followed by "pockets of isolated disorder".
A 14-year-old boy, who was among a crowd which gathered after the incident, was bitten by a police dog.
A police presence remains in the area, where a car was also set alight and damage was caused to a police vehicle.
A spokeswoman confirmed a 34-year-old local man had suffered gun injuries.
The victim was taken to Leeds General Infirmary for treatment, and his injuries were not thought to be life-threatening.
The 14-year-old boy is at the same hospital, being treated for leg injuries.
Senior officers have met with his family to discuss the incident and the matter has been referred to the Independent Police Complaints Commission.
BBC reporters at the scene of the shooting said there had been a crowd of up to 100 present and some were masked.
The BBC understands the shooting was related to an incident on 2 August, in the Savile Drive area of Chapeltown, where one man was found to have been shot in the foot.
Five men were arrested in connection with the incident, but were later released on bail.
Following the shooting on Monday, a scientific support van was damaged.
Firefighters also dealt with one car, which had been set alight during an incident that police described as "short-lived".
John Parkinson, West Yorkshire Police's Assistant Chief Constable, called on people in Chapeltown to "work with us" while investigations were carried out into the shooting and the subsequent disorder.
Mr Parkinson said there would be "high visibility" police patrols in the area over the next 24 hours.
"That's about our ability to provide reassurance to the vast majority of law-abiding citizens in Leeds and other communities in West Yorkshire," he said.
"We need to maintain the capability to protect and look after our communities, and that is exactly what we will be doing."