Hi You can use this code.
function wpse_143641_profile_shortcode( $atts )
{
echo get_avatar( get_current_user_id(), 64 );
}
add_shortcode( 'royal_profile', 'wpse_143641_profile_shortcode' );
And you should add the short code in your editor
[royal_profile]
or template
do_shortcode('[royal_profile]')