Man wearing gas mask arrested after using pepper spray on court officers near Boston, police say