A UK internet user helped police stop a teenager from unleashing a deadly attack on his school in Ukraine, the Metropolitan Police has said.