Three terrorists killed in encounter with security forces in J&K