Pakistani nationals in India must leave by set deadlines or face jail or fines under new immigration laws after a terror attack in Jammu and Kashmir.