A translation attributed to John Wells (see http://darshanapress.com/The%20Vaisheshika%20Darshana.pdf), of कारणाभावात्कार्याभावः। न तु कार्याभावात्कारणाभावः reads thus: "1.10 Absence of effect is known by the absence of a cause, 1.11 but absence of cause is not (necessarily) known by the absence of an effect." (Wells, 2009, p. 4)
Wells' translation invoked above is listed as the translation of the critical edition of the वैशेषिक सूत्र (Vaiśeṣika Sūtra) [see footnote 17 in https://en.wikipedia.org/wiki/Vai%C5%9Be%E1%B9%A3ika_S%C5%ABtra#cite_note-FOOTNOTEBimal_Krishna_Matilal197755%E2%80%9356-20] attributed to कणाद (Kaṇāda).
Citing Fowler (2002, pp. 98-99, Perspectives of Reality: An Introduction to the Philosophy of Hinduism) and Margenau (2012, pp. xxx-xxxi, Physics and Philosophy: Selected Essays) the link invoked immediately above includes the following about when the Vaiśeṣika Sūtra was likely compiled: "...the Vaiśeṣika Sūtra was likely compiled sometime between 6th and 2nd century BCE,..."
In view of i) all of the above, and ii) in the context of the question — When did mathematicians first use the contrapositive form to prove a conditional statement? — the following points seem noteworthy:
a) 1.10 above — कारणाभावात्कार्याभावः ("Absence of effect is known by the absence of a cause") — is, it can be reasonably posited, very very close to "If not B, then not A" (given "If A then B"), basically what is referred to as "Proof by Contrapositive."
b) Interestingly, 1.11 above — न तु कार्याभावात्कारणाभावः ("but absence of cause is not (necessarily) known by the absence of an effect") does not stop at the equivalent of "If not B, then not A" (basically 1.10 above), but goes on to add the equivalent of the point that "If A then B," does not necessarily mean "If not A then not B."
In my view, any history of the idea of what is today referred to as "Proof by Contrapositive" https://en.wikipedia.org/wiki/Proof_by_contrapositive#:~:text=In%20mathematics%2C%20proof%20by%20contrapositive,%2C%20then%20not%20A%22%20instead. that aspires to be truly global and inclusive, will need to, at the very least, include a mention of the वैशेषिक सूत्र (Vaiśeṣika Sūtra) attributed to कणाद (Kaṇāda), if not presenting "कारणाभावात्कार्याभावः। न तु कार्याभावात्कारणाभावः" from the वैशेषिक सूत्र (Vaiśeṣika Sūtra) attributed to कणाद (Kaṇāda) as amongst the earliest, if not the earliest, extant statement related to "Proof by Contrapositive".