Pakistan military: 4 soldiers killed near Afghan border