HONG KONG — Malaysia denied entry to a second political activist from Hong Kong on Friday, three days after the country’s police chief said that he put the student protest leader Joshua Wong on a blacklist for fear of harming the country and hurting its ties with China.

Leung Kwok-hung, a member of Hong Kong’s legislature well known for his protests in and outside the city’s legislative chamber, was sent back to Hong Kong under the order of immigration officers at Kuala Lumpur International Airport on Friday afternoon, according to a statement on his Facebook page.

Like Mr. Wong, the 18-year-old leader of the student activist group Scholarism, Mr. Leung was scheduled to participate in events commemorating the 26th anniversary of the military crackdown on protesters in Beijing in 1989.

“I know that the Malaysian government doesn’t like me; I’ve criticized the ruling government’s suppression of its opposition many times,” Mr. Leung said in a telephone interview before his departure to Malaysia. In 2011, Mr. Leung protested at the Malaysian Consulate in Hong Kong against the government’s crackdown on protests calling for electoral reform. He last visited Malaysia in November 2008 for an annual gathering of socialists.