Five Dallas police officers have been killed and six wounded by gunmen during protests against the shooting of black men by police, authorities say.

Three people are in custody and one man who was in a stand-off with police shot himself dead, US media have reported.