US soldier accused of planning attack on own unit