President Ghani has also ordered related officials to provide treatment to the injured and necessary assistance to families of the victims.
Meanwhile, a high-ranking government delegation headed by Ministry of Defense (MoD) has been assigned by President Ghani to investigate the incident.
Upon the completion of its investigation, the delegation has been ordered to submit its findings to the President.
The incident took place in Otri area of Sayed Abad District around 10 am on Friday.
According to local residents, a religious class was ongoing in the village mosque when a rocket landed leaving eight students killed.
The rocket was reportedly fired during a clash between security forces and Taliban.