NEW YORK — The man accused of burning a woman to death inside a New York City subway train used a shirt to fan the flames, a prosecutor said Tuesday at his arraignment on murder charges.

Sebastian Zapeta, 33, who federal immigration officials said is a Guatemalan citizen who entered the U.S. illegally, was not required to enter a plea and did not speak at the hearing in Brooklyn criminal court.

Zapeta will remain jailed and is due back in court Friday. His lawyer did not ask for bail.

Zapeta is charged with two counts of murder, accusing him of intentionally killing the woman and killing her while committing arson. He is also charged with one count of arson. The top charge carries a maximum sentence of life in prison without parole.

The apparently random attack occurred Sunday morning on an F train that was stopped at the Coney Island station.

Police said Tuesday the victim’s identification is still pending.

Authorities say Zapeta approached the woman, who may have been sleeping in the train, and set her clothing on fire with a lighter.

Zapeta then fanned the flames with a shirt, engulfing her in fire, Assistant District Attorney Ari Rottenberg said in court Tuesday. Zapeta then sat on a bench on the subway platform and watched, police said.

Zapeta told detectives that he didn’t know what happened but identified himself in images of the attack.

A Brooklyn address for Zapeta released by police matches a shelter that provides housing and substance abuse support.

Immigration officials said Zapeta had been previously deported in 2018.