23 militants killed in exchange of fire with security forces