NEWARK, N.J. — Authorities say Newark police shot a pit bull after the dog’s owner urged it to attack officers who were arresting him.

The shooting occurred Friday when officers responding to reports of a person with a gun spotted 18-year-old city resident Sean Bailey. They say he dropped a messenger bag and tried to run away when he saw the officers but was soon captured.

Bailey then allegedly told the dog to attack and it charged at the officers. One of them then shot the animal to avoid being bitten.

The wounded dog was treated at an animal facility, but further details on its condition were not disclosed.

Bailey is charged with illegally possessing a weapon and prohibited ammunition.

It wasn’t known Wednesday if Bailey has retained an attorney.