An encounter broke out between security forces and terrorists in Jammu and Kashmir's Budgam district.