Libyan president says he survived attack