Farmer guilty of defending family with shotgun