Mallik Wilks scored a second-half consolation goal for the visitors.
West Ham will now travel to Fleetwood or Everton in the fourth round, with ties due to take place in the week commencing 28 September.
Need a VPN? Or seeking to switch? Then support Tribal Football by clicking here to sign up with our official partners NordVPN. Not only will you receive the best VPN experience, but also great discounts by signing up via Tribal Football. Thanks for your support!