Police kills three terrorists in alleged encounter