Police sealed off the conference centre in Garland after the shooting
Two gunmen have been shot dead after they opened fire outside a conference on cartoons of the Prophet Muhammad in a suburb of Dallas, US police say.
A security guard was also injured. Police sealed off the Curtis Culwell Center in Garland and evacuated participants.
The gunmen's car is being searched for a possible bomb, police added.
The event, organised by a group critical of Islam, included a contest for drawings of the Prophet.
Dutch anti-Islamic politician Geert Wilders was among those attending. He tweeted that shots had been fired and he had safely left the building.
It was not clear if the shootings were related to the event, said Garland Police Department spokesman Joe Harn.
There had not been any credible threats in advance of the event, he added.
Eyewitness Stephen Perkins: ''Security was very tight''
One eyewitness told the Associated Press news agency that he heard about 20 shots, which appeared to come from a car driving past the conference centre, followed by two individual shots.
The City of Garland government, in a statement on its Facebook page, said the security guard's injuries were not life-threatening.
"As today's Muhammad Art Exhibit event at the Curtis Culwell Center was coming to an end, two males drove up to the front of the building in a car," it said.
"Both males were armed and began shooting at a Garland ISD (Independent School District) security officer. Garland Police officers engaged the gunmen, who were both shot and killed."
It added that police suspected the gunmen's vehicle could contain an "incendiary device" and a bomb squad was at the scene.
A later police statement said the bodies of the gunmen were still lying near the car.
Nearby businesses have been evacuated.
About 200 people were inside the conference centre at the time and were moved to the back of the building before being evacuated using school buses, police said.
The conference centre was locked down after the shooting
The BBC's Alastair Leithead says the event was controversial and provocative.
It was organised by the American Freedom Defense Initiative (AFDI), which has campaigned against the building of an Islamic centre near the World Trade Center site in New York.
The AFDI is run by controversial blogger and activist Pamela Geller and is listed as an anti-Muslim group by the Southern Poverty Law Center, a civil rights group.
Speaking before Sunday's event, Ms Geller told AP news agency that the aim of the contest was to make a stand for free speech.
Her group has also caused controversy by buying advertising space on buses in US cities, criticising Islam.
Sunday's meeting included a $10,000 (£6,600) prize for a cartoon of the Prophet Muhammad.
The same conference centre in Garland hosted an event in January to raise funds for building a local Islamic centre; that meeting was picketed by opponents.
Depictions of the Prophet Muhammad are offensive to many Muslims.
There were widespread protests in 2006 when the Danish newspaper Jyllands-Posten published cartoons satirising the Prophet Muhammad.
In January this year, 12 people were murdered by two Islamist gunmen at the French magazine Charlie Hebdo, which had published similar cartoons.