What happens if you use the wrong reference?
It's a mistake in good faith. You are a student, so you're supposed to learn. It's great that you found it yourself. Just send the lecturer an email explaining what happened. He probably won't really mind, but if the bibliography is included in the grade (e.g. if this is an Academic Writing course or so) he might deduct some point.