Soldier martyred, terrorist killed in exchange of fire