Israeli Arab accused of spying freed in plea deal