Gunmen have stormed an army training camp in Indian-administered Kashmir, killing at least four soldiers.