How should I fill a hole in an exterior wall?
I would use Duct Seal

 

I'm surprised whoever installed the AC unit didn't use it, it's used all the time by Electricians and HVAC technicians.  

It does not harden; so unlike foam, it can be easily removed and replaced if you have to add/remove wiring/plumbing.