Students were learning the Quran when the fire broke out in Paynesville, near Monrovia, a police spokesman says.