A Kenyan minister has issued a warning to LGBT pupils at boarding schools.

It comes after a male secondary school student was allegedly attacked at a Nairobi boarding school.

A Kenyan minister has issued a warning to LGBT pupils at boarding schools.

Gay students who infringe on the rights of other students, according to Kenya's education minister, should not be permitted to attend residential schools.

Those "going from one bed to another," according to George Magoha, should be permitted today in schools.

While he had nothing against LGBT children, he said that keeping them in day schools would allow their parents to monitor them more closely.

It comes after a male secondary school student was allegedly attacked at a Nairobi boarding school.

On social media, the education minister's speech has drawn conflicting reactions: some have called his remarks discriminatory, while others have praised him.

On Monday, the minister clarified that a previous comment was misinterpreted as implying that LGBT pupils should be expelled from boarding institutions.

He was quoted in December as saying that "homosexual and lesbian children must attend day schools close to their homes."

The statement sparked protests in Nairobi, which were organized by the queer community.