Excerpt from the IIHF Rules
Kicking / Goals
Kicking the puck shall be permitted in all zones. A goal CAN be scored by an attacking Player who uses a kicking motion to propel the puck into the net with their skate/foot, provided the kicking motion occurred anywhere on the ice other than a ‘distinct kicking motion” within the goal crease.
A puck that deflects into the net off an attacking Player’s skate who use’s a “kicking motion” is a legitimate goal.
A goal cannot be scored by an attacking Player who “kicks” a puck that deflects into the net off an official.
A puck that is “directed” into the net by an attacking Player’s skate shall be a legitimate goal.
The following should clarify deflections following a “kicked puck” that enters the goal:
(1) A “kicked puck” that “deflects” off the stick of any Player (including the Goalkeeper) shall be ruled a “good goal”.
(2) With the use of a foot/skate, was a distinct kicking motion evident when the puck is located within the crease? If so, the apparent goal must be disallowed.
(3) A goal will be allowed when an attacking Player “kicks” the puck, and the puck “deflects” off their own stick and then into the net.
(4) A goal will be allowed when a puck enters the goal after “deflecting” off an attacking Player’s skate or “deflects” off their skate while they are in the “process of stopping”.
(5) A goal cannot be scored by an attacking Player who “kicks” any equipment (stick, glove, helmet, etc.) at the puck, including “kicking” the blade of their own stick, causing the puck to cross the Goal Line.
Determination of puck in crease:
• Puck has contact with the blue paint.
• Distinct kick motion is determined with the position of the puck when the skate makes initial contact.
• A distinct kicking motion is one which, with a pendulum motion, the player propels the puck with his skate into the net.
Here you can find an overview of all IIHF and ICE rules.