Two Algerian policemen killed in suicide bombing
The agency said the "terrorist" had been carrying a weapon as well as wearing an explosives belt.
Recommended articles
The officers had intervened when the attacker tried to enter the police headquarters in the region of Tiaret, about 350 kilometres (220 miles) southwest of the capital Algiers, the official APS news agency reported.
"The policemen on duty responded quickly, and one of them, in an act of bravery, threw himself on the assailant at the entrance of the headquarters and lost his life," the general directorate of national security said, quoted by the agency.
The other police officer died of his wounds later, it added.
The attack was the second time this year that a suicide bomber has targeted police in the North African country.
In February a policeman foiled an attempted suicide attack on a police station in the eastern city of Constantine by opening fire on the approaching assailant and triggering the explosives belt he was wearing.
That attack was claimed by the Islamic State group.
JOIN OUR PULSE COMMUNITY!
Eyewitness? Submit your stories now via social or:
Email: news@pulselive.co.ke