Man sobs in dock after he is cleared of school teacher attac