Two militants were killed in two separate encounters with security forces in Shopian and Kupwara districts of Kashmir, army said today.