An army major, a naval commando and two top militants were among the eight persons killed in two encounters in north Kashmir in the past 24 hours.