ANKARA, Turkey—Turkey's state-run news agency says a man has been hospitalized after trying to set himself alight near Turkish Prime Minister Recep Tayyip Erdogan's office, in the second incident near the building this week.

The Anadolu Agency says the man on Wednesday doused himself with gasoline and set himself on fire but police guards and passers-by quickly extinguished it.

It saysthe 39-year-old suffered burns to his hands and face and was taken to a hospital for treatment. There was no immediate information on his motive.

On Monday, an unemployed man was detained for firing three blank shots at a visitors' entrance to the building and officials said he was trying to draw attention to his "personal problems."