ANCHORAGE, Alaska (AP) _ A man embroiled in a domestic dispute Saturday fatally shot an officer who responded, then shot his wife and killed his two small children before committing suicide, police said.

Officer Dan Seely was shot in the face after chasing Paul Ely Jr. down the hallway of an apartment where his estranged wife and children lived, police spokeswoman Debbie Cargill said.

After shooting Seely, Ely shot his wife in the gut, ran to a neighbor's house with his two small children and killed them before shooting himself, Cargill said.

Seely, 40, died about an hour after the shooting. Christina Ely, 27, was hospitalized in satisfactory condition.

Her children, Jessica, 5, and Corey, 4, were fatally shot.

The shooting happened in a rural neighborhood about 20 miles north of downtown Anchorage. Neighbors said the house was divided into apartments. Mrs. Ely and her children lived in an apartment, but the gunman did not.

``I had heard that they had just gotten divorced and I know they had been having problems for more than a year because the kids would come to the bus stop and talk about the parents fighting,'' said neighbor Tammala Parris.

Ely was charged with violating the terms of a restraining order in September 1994 and with misdemeanor assault in April of this year, according to criminal records.