A 31-year-old man armed with a handgun on Thursday tried to enter Planalto palace with the objective of meeting with President Dilma Rousseff to express to her demands "of a personal nature," a government official told Efe.

The intruder gained access to the building through the main entrance and pointed the gun at his neck demanding to meet with the head of state, a member of the presidential security staff said.

According to this version of events, Planalto security agents managed to calm the man down and he agreed to turn over his weapon after almost an hour of negotiations in exchange for being allowed to send to the press a letter with his demands, which were not detailed by the source.

According to the state-run news agency Agencia Brasil, in his disjointed message the man mentions alleged attacks he suffered at the hands of the police at the request of a female romantic companion in 2004 and 2006.

In addition, he says that former President Luiz Inacio Lula da Silva offered him a diplomatic post.

The intruder was taken to a Federal Police station in the capital.