Electronic transport and antiferromagnetism in the layered compound BaCoS 2