A suspect armed with a pellet gun was taken into custody Thursday following a police shooting in Long Beach.