Borrowed from English agnostic, derived from Ancient Greek ἄγνωστος (ágnōstos). By surface analysis, a- (“un-”, negative prefix) + gnostico (“gnostic”).
Practice speaking and memorizing "agnostico" and many other words and sentences in Italian.