Sub-Inspector martyred, terrorist arrested