Sami Hamdi was detained after a pro-Israel group released a video purportedly showing him praising the 7 October 2023 Hamas attacks on Israel