In 2006, the United Nations sent in security forces to restore order when unrest and factional fighting forced 15 percent of the population (155,000 people) to flee their homes. The following year, Gusmão declined another presidential term, and in the build-up to the mid-year presidential elections there were renewed outbreaks of violence. In those elections, José Ramos-Horta was elected President. In June 2007, Gusmão ran in the parliamentary elections and became Prime Minister. In February 2008, Ramos-Horta was critically injured in an attempted assassination. Prime Minister Gusmão also faced gunfire separately but escaped unharmed. Australian reinforcements were immediately sent to help keep order. In March 2011, the UN handed over operational control of the police force to the East Timor authorities. The United Nations ended its peacekeeping mission on 31 December 2012.