That was definitely a shooting foul and the bucket should've counted. Unless they're talking about the first swipe that missed contact.