Police respond to man shooting pellet gun