City Superintendent of Police Chandan Kushwaha said the accused who also goes by the name Nitish Kumar was granted bail by Sachivalaya police station under Section 41-A of CrPC.
The youth was then handed over to his family.
The youth had hurled the slipper at the CM during a public interaction to protest against a government advisory on lighting fires yesterday.
He was kept at Sachivalaya police station last night after arrest.
Son of a farmer, the youth, a matriculate has acquired training as a fitter from ITI but was not doing any job, police said.
Also Read
He said the youth was angry over the government's advisory to people asking them not to light fire for cooking and puja between 9 AM and 6 PM in a bid to check incidents of fire due to the heatwave sweeping the state.
Kumar had said he had asked the DGP to let off the offender.
"I told him (DGP) that even if somebody throws stones or fires bullet at me for working for the welfare of the citizens, no case should be lodged against the attacker," the CM had said.