Two militants, including a top Jaish-e-Mohammed (JeM) commander from Pakistan responsible for a car blast last month that claimed the lives of two Army jawans, were killed on Saturday in an encounter with security forces in Jammu and Kashmir's Shopian district, police said.