CHICAGO—This city’s police officers have been warned of the increasing use by gang members of rifles able to pierce police body armor, after a spate of shootings with assault-style weapons.

On Sunday, two men armed with assault-style rifles shot 10 people, police said. The victims, two of whom died, were attending a memorial for a person shot and killed that day in the Brighton Park neighborhood on the southwest side.

“Two...