The incident took place last night and a case has been registered at the Babri police station, they said.
The boy, Rahul, is undergoing treatment at a local hospital and his condition has been stated as serious, police said.
Police have launched a search to nab the accused.