check iPhoto's settings, make sure that new discoverable devices are not detected. If that's not the case, check the device settings itself (on your mac) and make sure their are no options to autorun anything. I'm going out on a limb, it's probably iPhoto's settings.