A hostage-taker who barricaded himself inside a Portuguese restaurant on Sunday, setting off explosives and shooting dead a police officer, was himself killed in a gunfight, the gendarmerie said. Six others including four police were injured by the blasts in the seven-hour ordeal in the restaurant in central Portugal, gendarmerie spokesman Jorge Goulao said. The man, described as of eastern European origin, had entered the restaurant in Pinhal Novo to eat, but then pulled out a gun and threatened customers demanding money. Most of the customers at "The Refuge" eatery were able to flee and alert the police. The others were kept hostage. When officers arrived, the gunman fired a shot that hit a 27-year-old gendarme in the head, killing him. In the ensuing gun battle, the hostage-taker was killed. One of the officers was hospitalized from the explosions while the two civilians suffered minor injuries. Portugal's RTP state television network said the gunman was a Moldovan who had lived in Portugal for several years, working in the construction sector. He reportedly became unemployed a few months ago and was living in a car in the region after losing his house. The network said the man had been carrying four grenades and a gun.