Under Texas law citations 822, it is legal to shoot any dog attacking and or having killed livestock including fowl.
The OP may have been inside city limits where discharging a firearm is illegal and or the fact he did not report it.
Not enough info from the OP
David