Three state police departments engaged the pursuit before the armed suspect was taken into custody