You can click on any resource location and then choose "Collect" to send your troops and start looting the site. When the available resources are ultimately collected, your troops will return to the base automatically.

Increasing the deployed troops, the collecting capacity, and their level will increase the looted resources you get. (There are special units with huge capacity).