A 20-year-old man has become the first Ugandan to be charged with “aggravated homosexuality”, an offence punishable by death under the country’s recently enacted anti-gay law, prosecutors and his lawyer said.