A police inspector was martyred while a deputy superintendent of police was injured during an encounter between the counter-terrorism department (CTD) personnel and terrorists in Sahiwal on Saturday night.