KANKAKEE, Ill. (AP) — Authorities say two men were killed and another was injured in shootings outside a northern Illinois courthouse stemming from a long-running internal gang dispute.

Kankakee Police Chief Robin Passwater says the shootings occurred after one of the victims, Victor Andrade, emerged from the Kankakee County Courthouse and was fatally shot by Antonio Hernandez.

Passwater says Miguel Andrade then went to his car and retrieved a gun and engaged in a running gun battle with Hernandez outside the courthouse and into a parking lot in which Hernandez was killed.

Miguel Andrade was taken into custody, Passwater says “they’re all members of the same gang” and “there was some kind of internal feud with them.”