QUITO, Ecuador — A shooting by a criminal gang at a pool hall in northern Ecuador killed at least seven people and wounded four others, police said on Saturday.

It was the second such attack in less than a month in the same city during a wave of violence in the Andean country.

The shooting occurred late Friday in the city of Santo Domingo de los Tsachilas, located 80 miles west of the capital, Quito, according to the local police commander, Col. Olga Benavides, who attributed the attack to a “territorial dispute” between criminal gangs.

On Aug. 17, seven people were killed during a similar attack.

One of those killed and two of the wounded in Friday’s shooting had criminal records for drug trafficking, criminal association, murder and theft, according to a police report.

Images shared by local media show several men dressed in black, wearing vests and caps, arriving at the location and opening fire on people who immediately fell to the ground.

— The Associated Press