New rule this year, 1-8, prohibits the use of artificial noisemakers.
You handled it correctly. Dealing with it is game management's (facility supervisor or home coach) responsibility. Stop play temporarily while they deal with it, then move on with the match.