“This man has actually shot people in two separate gang shootings in public places in our community,” a prosecuting attorney said.