In order to achieve this, the milestone should have some sort of a reference to the task (e.g. ID). If that is the case, then it is possible.
Say that you already have a workflow rule that triggers upon milestone completion. Then the following would close the task referenced:
I hope this helps.