Finder shows .dmg is unmounted, Trash refuses to delete it
Rebooting should clear all the processes that are using the file and unmount all potentially mounted disk images. Once rebooted, try deleting it again.