After stabbing his friend, the accused also injured himself, they said.
Superintendent of Police (SP) Mahesh Chandra Jain said the incident took place last night when the accused, identified as Baigla, called the victim to his place and forced him to keep sexual relations with him.
"Baigla invited his 27-year-old male friend to his residence at Old Housing Board Colony. As per the victim's complaint, Baigla stabbed him after he refused to establish same-sex relationship with him," he added.
After the incident was reported, both the men were taken to the district hospital, where they are currently undergoing treatment, he added.
A case was registered against the accused under IPC section 307 (attempt to murder).