Civil, military coordination vital to tackle terrorism: PM