Mass. man charged in city shooting