A teacher accused of sexually abusing and murdering a baby told a colleague he had 'dark thoughts' of 'drowning or suffocating' the infant, a court heard.