Obama holds town hall at military base