On the nullity of a family of tripartite graphs