A man injured three policemen in Hungary's Budapest late on Thursday with a knife, and one of the injured police died later, a police statement said.
The suspect was trying to enter a flat in a Budapest apartment block when the police were called, police said.
As the three officers tried to detain him, the man stabbed them and tried to escape to the street, where a fourth officer shot him in the foot, police said.
No further details were available and police were not immediately reachable for comment.
Prime Minister Viktor Orban told state radio on Friday that the government would help the family of the officer who was killed.
Orban did not give any further information about the suspect or the circumstances of the attack.