Peter Harvey, 50, attacked the 14-year-old at All Saints' Roman Catholic School in Mansfield, Nottinghamshire, in July last year.
Transcripts of an interview between Harvey and detectives were read out at Nottingham Crown Court.
In it, Harvey said: "I can't remember it too well but I do recall it was like watching it on television, like it was not actually happening to me.
"I can remember the boy saying 'f*** off' and when that happened I was not really there."
COMMENT RULES: Comments that are judged to be defamatory, abusive or in bad taste are not acceptable and contributors who consistently fall below certain criteria will be permanently blacklisted. The moderator will not enter into debate with individual contributors and the moderator’s decision is final. It is Belfast Telegraph policy to close comments on court cases, tribunals and active legal investigations. We may also close comments on articles which are being targeted for abuse. Problems with commenting? email@example.com