A Gaza-bound aid boat carrying Greta Thunberg and other activists has been diverted to Israel, the country's foreign ministry has said.