A gunfight broke out between security forces and terrorists in a remote village of Rajouri district of Jammu and Kashmir late last night. A team of security forces was conducting a search operation in remote Lathi village of Khawas tehsil in the district following a tip-off about the presence of militants, said an official.