After chase, cops nab armed suspect in Brooklyn