Palestinian official: Rivals agree on election