Vladimir Putin has apologised to Azerbaijan's president for what he called a "tragic incident" after a plane crashed killing 38 people - but stopped short of taking responsibility.