QUETTA, Pakistan -- Two suicide bombers struck a church in Pakistan on Sunday, killing nine people and wounding more than 50 others, authorities said, in the first attack on a church claimed by the country's Islamic State group affiliate.

Hundreds of worshippers were attending services ahead of Christmas when the bombers appeared in the city of Quetta and clashed with security forces. One assailant was killed at the church entrance. The other made it inside, said Sarfaraz Bugti, home minister for the southwestern Baluchistan province.

Baluchistan Police Chief Moazzam Ansari praised the response of security forces guarding the church, saying the attacker who made it inside was wounded and unable to reach the main building.

"Otherwise the loss of lives could have been much higher," he told reporters.

Quetta Police Chief Abdur Razzaq Cheema said a search was underway for two suspected accomplices who escaped.

Local television showed ambulances and security patrols racing to the scene as women and children were being led out of the church's main gate.

The Islamic State group later claimed responsibility for the attack on their Aamaq news agency, saying two "plungers" from their group had stormed the church, without providing further details.

It was the first time the Islamic State group has claimed an attack on a church in Pakistan, though Muslim extremists have claimed church attacks in the past. The deadliest example was in September 2013, when twin suicide bomb blasts killed 85 people in a Peshawar church. In March 2015, two suicide bombers attacked two churches in the eastern city of Lahore, killing 15 people.

Fifty-seven people were wounded in the latest attack, including seven who were listed in critical condition, according to Wasim Baig, a spokesman for Quetta's main hospital.

A young girl in a white dress sobbed as she recounted the attack to Geo television, saying many people around her were wounded.

Aqil Anjum, who was shot in his right arm, told The Associated Press he heard a blast in the middle of the service, followed by heavy gunfire.

"It was chaos. Bullets were hitting people inside the closed hall," he said.

Dozens of Christians gathered outside a nearby hospital to protest the lack of security. Pakistan's president and other senior officials condemned the attack.

------

Associated Press Writer Ishtiaq Mahsud in Dera Ismail Khan contributed to this report.