​Residents in the Senegalese town of Kaolack say police have arrested 11 people accused of homosexual acts.

Boukhari Ndiaye said the arrested were among 20 people attending a celebration of a gay marriage at a school in the town about 200 kilometres southeast of the capital, Dakar, on Friday.

He said the 11 remain at the police station.

Homosexual acts are criminalized in at least 34 African countries, including Senegal, where they are punishable by up to five years prison and fines of up to $2,500.

A well-known Senegalese journalist was sentenced in July to six months in prison for acts of homosexuality. Seven men were also arrested and imprisoned.