A police officer and a detainee were shot dead overnight in an attack blamed on Boko Haram on a police unit in northern Cameroon, a security source said Monday.