NAIROBI, Kenya — A Kenyan lawmaker was kicked out of the parliamentary chamber on Wednesday for bringing her infant daughter in with her, in a move that drew outrage from some fellow politicians and the public.

The lawmaker, Zuleikha Hassan, said she took her baby with her to work at the National Assembly in Nairobi, the Kenyan capital, after an emergency had left her without child care.

“I said, ‘Why should I stay at home and not go to work, just because of the baby?’ ” she said in an interview. “Why should they criminalize having a baby? So, I said, ‘I’m going to Parliament with a baby.’ ”

She also lamented the lack of child care facilities at the government buildings, and said with more young women getting into the work force, “the spaces have to be more sensitive, especially for younger women who are in childbearing age.”