Police credit civilians with trying to stop active shooter