Peru declared a three-day mourning for former president Alan Garcia, who died on Wednesday after being shot in the head as police tried to arrest him on charges of corruption.
Peruvian President Martin Vizcara´s government issued a decree to flag the country.
The national news agency "Andina" reported that an official funeral will be held for Garcia. The party "Abrista", who was Garcia belongs to him for a mass at the party headquarters.
"I am saddened by the death of former president Alan Garcia," said Vizcara on Twitter. "I express my sincere condolences to his family and loved ones."
The Peruvian judicial ordered Garcia, 69, to be held for 10 days pending investigation into a large-scale corruption scandal in Latin America involving Brazilian construction giant Odebrecht.
Interior Minister Carlos Morin told a news conference that when the police arrived at Garcia´s home in Lima, he said he would contact his lawyer and go up to his room.
The minister added that he heard the sound of a bullet fired, forcing the police to break the door of the room to find Garcia sitting, and there was a wound in the head.
Garcia was taken to hospital, where he underwent emergency surgery.
"Andina" hospital sources said that the bullet came out of the head and that Garcia suffered three heart attacks during surgery.
On 17 November, Garcia entered the Uruguayan embassy in Lima but was forced to leave two weeks later when Uruguay refused to grant him political asylum.
A court order earlier prevented Garcia from leaving the country for 18 months pending an investigation into allegations of complicity and money laundering in connection with the Oudbrecht scandal.
Garcia denied any wrongdoing and told the RBC news network on Tuesday that his detention would be a "gross injustice" to him.
He also denied that he was concerned about his arrest. "It is a disturbing position. It is a great honor to be president. If the homeland is convinced that I have to pay for something I did, it is the homeland," he said.
"I do not have to complain," Garcia said. "I think I have a small place in the history of Peru."
Garcia took the presidency for two separate terms, from 1985 to 1990, and from 2006 to 2011.
Former Peruvian President Pedro Pablo Kuczynski, who took power from 2016 to 2018, was also detained for 10 days in connection with the Odebrecht scandal.
Prosecutors have requested Kuchinsky, 80, to be held for up to 36 months. He was taken to hospital on Tuesday because of high blood pressure.
The former president described his arrest as "arbitrary" and confirmed that he had cooperated with all the judicial investigations he was facing.
Kuchinsky took office in 2016 and resigned two years later, before a vote on his dismissal was expected to lose him.
Kuchinsky acknowledged the existence of trade links with Odebrecht, which is plagued by widespread corruption, but denied any illegal action.
Three of Kuchinsky´s predecessors are also being investigated for links with the company, which has admitted to paying nearly $ 800 million in bribes in 12 countries, including 10 in Latin America.