Electronic transmission through a metallic cluster attached to an adsorbed nanowire: creation of a nanoscale electronic on/off switch