KAMPALA, Uganda (AP) — Ugandan police raided the offices of a United States-funded project known to offer AIDS services to homosexuals, a government spokesman said Friday, in what appeared to be the first public action by police to enforce a new law that strengthened criminal penalties against gay sex.

The Makerere University Walter Reed Project building in the Ugandan capital of Kampala was targeted for "training youths in homosexuality, spokesman Ofwono Opondo said on Twitter Friday. He offered no further details but said a "top diplomat" was said to be involved in the project.

Frank Mugisha, a gay leader in Uganda, said a Ugandan who worked for the project had been arrested and interrogated by police on Thursday. The project —a nonprofit partnership between a Ugandan university and the U.S. Military HIV Research Program — was known to offer services to gays who suffer from AIDS, he said.

"A lot of LGBTI people found it comfortable to go there for anti-retroviral treatment," he said.

Patrick Onyango, a spokesman for Ugandan police, denied the raid, saying a man pretending to represent the police threatened workers at the project, which has since been closed by administrators. He said police were now looking for the man, after police in his jurisdiction briefly arrested him and then freed him.

A U.S. Embassy spokesman was not immediately available for comment.

Uganda's president in February enacted a new measure that allows up to life imprisonment for those convicted of engaging in gay sex and sets a seven-year jail term for the offense of "attempted homosexuality." Despite criticism from the U.S. and other Western countries that say the law is draconian and should be repealed, it has wide popularity among Ugandans.

On Monday it became the first legislation in Uganda to be publicly celebrated in a rally attended by Ugandan President Yoweri Museveni, who told a raucous crowd that he was "mobilizing" to fight Western gays he accuses of promoting homosexuality in Africa. At that rally, attended by thousands of Ugandans, Museveni said gays deserve to be punished severely because homosexuality is "criminal and it is co cruel."

The U.S., the World Bank and some European countries have cut, delayed or reviewed development assistance to Uganda since the bill was enacted, action that some Ugandan government officials have described as blackmail.

Ugandan gay leaders say many homosexuals have had to flee their old homes in the weeks since the measure was enacted, apparently to escape angry mobs, and some are reported to have been evicted by landlords who discovered they were gay.

Mugisha, the gay leader, said he recommended the project's clinic to many homosexuals because workers there were "without bias."

The project says on its website that its objectives include monitoring trends in the HIV epidemic in Uganda and conducting HIV vaccine trials. The project has been open since 1998 and has since expanded its activities to include HIV prevention, care and treatment. Through the U.S. President's Emergency Fund for AIDS Relief, or PEPFAR, the project has been running HIV programs across Uganda.