The group is on trial in Cairo accused of spying for a foreign group , planning attacks against tourists and shipping in the Suez Canal , and sending operatives to Gaza to help militant groups there .