An NYPD officer opened fire on two loose pit bulls in Queens Saturday, striking one of the dogs, police said.

Cops were near 149th Ave. and 79th Street in Lindenwood just after noon when they saw two unleashed pit bulls, officials said.

When the officers tried to coral the rowdy canines, one of them charged an officer, who then pulled out his gun and shot the dog, striking him once, police said.

“He was trying to order the dog back. The dog charged, just came toward the officer, and he fired off like four shots,” said witness Sam Musovic.

“The dog was running around, there was blood all over the place, blood coming from his face.”

Both dogs were then caught and taken to an animal care facility, officials said.

It was not immediately clear if the dog that was shot died from its wounds.

The officers were taken to an area hospital for ringing in their ears.

Another person on the block had reported being attacked by a loose pit bull shortly before, but it’s not clear which of the dogs responsible for the earlier assault.

“She was walking her own dog, I guess. She was bitten in the leg and in the face,” said Musovic, saying that his neighbor had to be taken to the hospital.

“I’ve never seen anything like this on our block,” he added.