Three people were taken to hospitals after an explosion inside a home in Fayette County on Sunday morning, officials said.

Witnesses reported smoke coming out of the windows of a duplex in the 200 block of South Carnegie Avenue in Connellsville just before 3 a.m., according to Fayette County dispatch.

The explosion happened on an upper floor and at least one window was blown out, said Connellsville police Officer Jacob Cavanaugh.

He said all of the people who were taken for treatment were in stable condition. Two were treated for chemical burns.

The cause of the explosion is under investigation, Officer Cavanaugh said.