quote

It is unlawful to hunt for, shoot at, trap, take, chase or
disturb wildlife within 150 yards of any occupied residence, camp,
industrial or commercial building, farm house or farm building, or
school or playground without the permission of the occupants

unquote.

Did you give yourself permission to shoot?