Iran has confirmed that security chief Ali Larijani has been killed.