Decoding the AI Pen: Techniques and Challenges in Detecting AI-Generated Text