The flames broke out inside a mid-rise building on Denman Street in Elmhurst.
The extent of the injuries to the firefighters and police officers is unknown. Two others were also taken to the hospital with minor injuries.
The cause of the fire remains under investigation.