The state fire marshal's office is investigating the fire, and Biddeford police are investigating the cause of death.