Damage is shown on the facade of Citic Tower, also known as China Zun, in Beijing on June 27. The pilot died in the accident, and authorities said the crash was intentional. Photo by Jessica Lee/EPA

July 2 (UPI) -- The pilot of a small plane that crashed into Beijing's tallest building was a 66-year-old man who was suffering from "chronic insomnia and anxiety" and wrote about "ending his life" in his diary, authorities said Thursday.

The man died in the June 26 crash and wounded 13 others in the 109-story Citic Tower.

The pilot was identified as Liu and was a divorced freelancer who lived alone in Beijing, the Chaoyang district government said in a statement.

"The comprehensive investigation concluded that this was a case of endangering public safety caused by personal reasons," the statement said.