MUMBAI—A gay Indian maritime engineer says he was lured into a trap during a visit to Mumbai last year.

When the 33-year-old was with a man he met through an online dating service, two others burst into his hotel room. One whipped and punched him. They took his laptop, a gold chain, camera and his ATM card, which they used to empty his bank account, he says.

The...