Improving Student-AI Interaction Through Pedagogical Prompting: An Example in Computer Science Education