A British man was found guilty on Wednesday of plotting to kill Prime Minister Theresa May in a terrorist attack at her official residence.

The man, Naa’imur Zakariyah Rahman, 20, who is originally from the Birmingham area of England, was convicted at the Old Bailey courthouse in London on Wednesday, the BBC reported. He will be sentenced at a later date.

“I want to do a suicide bomb on Parliament,” Mr. Rahman told an undercover agent before his arrest, according to testimony. “I want to attempt to kill Theresa May.”

Mr. Rahman was detained late last year along with Mohammed Aqib Imran, 21, after the police discovered that Mr. Rahman was planning an attack that would include bombing the security gates that protect Mrs. May at her home and office at 10 Downing Street. He planned to stab the British leader to death, prosecutors said at the time of his arrest.