Education Cabinet Secretary George Magoha responded after a male student received a girls' school calling letter.
The CS said the Form One student's selection 'mess' was due to technical failures.
"As Cabinet secretary in charge of Education docket, I take full responsibility for the mix-up which happened due to coding error," Prof Magoha said.
"I assure the public and parents of the concerned boy that the issue has been fixed. It was unfortunate that the boy was placed in a girls' school and I'm happy the mistake has been corrected," he added.
Spencer Wangila received a calling letter from Naromoru Girls Secondary School in Nyeri County.
CS Magoha stated that Wangila was placed at Kibabii High School.
"Should such admission mix-ups arise, do not create a lot of heat about them, let us know in good time and they will be corrected very quickly at the local level.
Form One students will begin reporting to their respective secondary schools on August 2, 2021.