The Karnataka education department has ordered an inquiry into the incident in which the headmaster of a government school in Karnataka's Gadag asked students to write an essay on Prophet Muhammad following which activists of the right wing outfit Sri Rama Sene protested against him.