The Frobenius-Schur indicator of Tambara-Yamagami categories