This dictionary entry for "to" has this usage example of the phrase "put ...to"
He put a finger to his lips.
So, I write this:
Jane put a flashlight to John's ear.
Does it mean Jane touched John's ear with a flashlight?
It would appear to mean that, yes.
not a teacher
I would go a little further and assume that Jane was shining the flashlight at or into John's ear.