Windows in its infinite wisdom protects files in use (even malware), so it is likely that avast! can't delete or move files in use. So schedule boot-time scan in avast's menu (as Frank said). This should ensure that the file isn't in use and avast should be able to deal with it.
- What was the filename, where was it found
example (C:\windows\system32\infected-filename.xxx)?