ZAGREB, Croatia — A man threw an explosive device onto the grounds of the United States Embassy in Montenegro, doing only minor damage, and then killed himself with another explosive, the Montenegrin police said on Thursday.

Officers have not determined a motive for the attack in Podgorica, the capital, but they have identified the bomber through DNA testing, said Enis Bakovic, deputy director of the national police. Speaking at a news conference, Mr. Bakovic referred to the man by his initials, D. J., in keeping with the practice of withholding a suspect’s name while an investigation is underway.

He said that the assailant was a citizen of Montenegro who was born in 1976 in the town of Kraljevo, in neighboring Serbia, and that he had no criminal record.

The Associated Press and news outlets in Serbia identified the man as Dalibor Jaukovic, a former soldier in the army of Yugoslavia.