Gun attack linked to town tension