David Moyes thought Wayne Rooney's opener in Manchester United's 2-0 victory at West Ham was a "brilliant" strike.