Disable usb debugging in settings>applications>development and select samsung kies in settings>wireless and network>usb settings and try connecting the device again