Milestones can be associated only to task lists, not individual tasks.

You will need to create a task list for your single task and then associate it to a task list. Learn more about creating and associating milestones to task lists.