PHOENIX (AP) — Phoenix police have identified a knife-wielding man who was fatally shot by an officer after he refused to drop the weapon.

They say 28-year-old Edgar Ramirez Carreto was pronounced dead at a hospital after the incident early Thursday.

Police say the man walked into a Phoenix hospital's emergency room armed with two butcher knives and yelling incoherently.

Carreto later was spotted across the street from the hospital, banging on the door of an apartment with one knife in his hands.

Police say Carreto refused commands to drop the knife and stun-bag rounds fired at him failed to stop him from advancing toward five officers.

They say one officer shot the man to end the threat.

Police say there's no indication that Carreto had gone to the hospital to seek treatment.