A man died on Tuesday after setting himself on fire outside Kensington Palace, the London home of Prince William and his wife Kate, police said.

The incident was not being treated as suspicious or related to terrorism, they added.

Police said they had been alerted just after midnight by officials from a central London hospital to say a man in their care had failed to return.

Three hours later, officers were called to a site near the locked parks of the palace, located in Kensington Gardens in central London, after reports of a man acting suspiciously.

BRITAIN-ROYALS/FIRE

A police forensic tent stands erected near the grounds of Kensington Palace, which is the official London residence of William and Kate and their two children, George and Charlotte. (Neil Hall/Reuters)

When they arrived they found the man ablaze. They tried to save the man, believed to be in his 40s, but he was pronounced dead at 3:42 a.m.

Kensington Palace is the official London residence of William although he, Kate and their two children, George and Charlotte, spend most of their time at their country mansion in Norfolk, eastern England, close to where the prince works as an air ambulance helicopter pilot.

with files from The Associated Press