ANCHORAGE, Alaska (AP) — An Anchorage police officer shot and wounded a man who had been firing a semi-automatic rifle at homes in an Eagle River neighborhood Thursday morning, Police Chief Justin Doll said.

Doll said at a news conference that when police officers arrived, the man was firing his weapon. Officers believed they were the targets, and one officer returned fire, injuring the man, the Anchorage Daily News reported.

Doll said another man, a neighbor, had been injured when the man was firing at nearby homes, at least one of which was struck.

Both men were taken to an Anchorage hospital and are expected to survive, police said.

Doll said the motive for the man shooting at neighboring homes is not known. The man will likely face charges.

The officer who fired the shots will be identified after 72 hours. The state’s Office of Special Prosecutions will investigate if the use of force was warranted.

This was the fourth officer-involved shooting in Anchorage this year.