Police suspect the weapon was a country-made gun and are investigating how it was brought to the govt school in Palakkad