ISTANBUL — Turkish officials have banned all events by lesbian, gay, bisexual, trans and intersex rights groups in the country’s capital, in a move LGBTI organizations call illegal and discriminatory.

The ban took effect Saturday for an “indefinite” period and applies to all LGBTI film screenings, theaters, panels and exhibitions.

The Ankara governor’s office announced Sunday that the ban was imposed to protect “public security.” It said the events may cause animosity between different groups and endanger “health and morality” as well as the rights and freedoms of others.

The governor’s office warned that some groups may be provoked by LGBTI events and take action against participants because of “certain social sensitivities.”

Although homosexuality isn’t banned in Turkey and numerous LGBTI associations are legally registered with the state, rights activists say LGBTI individuals face discrimination and stigma.

Two Ankara-based LGBTI associations slammed the “arbitrary” ban in a statement late Sunday, saying it violates domestic and international laws.

Kaos GL and Pink Life organizations argued the vagueness and wide scope of the decision would legitimize rights violations against LGBTI individuals and turn them into targets.

The organizations said the decision would cripple their work to combat discrimination and hate crimes, calling on officials to withdraw the ban.

ILGA, a global organization for LGBTI rights, called the ban “a disgraceful breach of fundamental rights and freedoms” and warned that it constituted an example of the “shrinking space” for LGBTI civil society in Turkey.