Two police officers in America were injured and a suspect killed during a shootout at a Scientology church where the man had entered the building carrying a gun and a sword.

The police were called to the building in Inglewood, California, on Wednesday afternoon after the man reportedly arrived at the church in a white Bentley and entered the building with the weapons.

Gunfire erupted inside the entrance hall of the building when police approached the man, who was wearing a hooded sweatshirt and wielding the sword, police said.

One officer was shot in the hand, and another shot in the arm. The suspect was shot in the head and died of his injuries.

Both police officers were hospitalised and are said to be in a good condition.

Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees Show all 10 1 /10 Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees rathbun1024x768.jpg Michael Zamora Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 5370834.jpg Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 4630589.jpg Getty Images Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 5371638.jpg Getty Images Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 5371639.jpg Rex Features Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 5371588.jpg Getty Images Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 5371634.jpg Rex Features Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 5371635.jpg Rex Features Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 5320715.jpg AP Scientology's 'heretic': How Marty Rathbun became the arch-enemy of L Ron Hubbard devotees 5370835.jpg Michael Zamora

The police did not say who fired first or whether a gun was recovered from the suspect.

The Church of Scientology released a statement thanking the Inglewood Police Department for its “rapid response in protecting our parishioners and staff members”.

The organisation said it offered its full support to the authorities investigating the incident.

Inglewood is a city in the Los Angeles metropolitan area and has a population of just over 100,000 people.

The Scientology Church in Inglewood was opened in 2011, since then it has also opened a community centre to work alongside other civic institutions, businesses and individuals, the church’s website says.