New Jersey mayor issues apology to town for 'mistake'