Two unidentified militants were killed on Monday in an encounter with security forces on the outskirts of the city, police said. The encounter took place in Rangreth area, they said.