HAYWARD, Calif. (AP) — A man was involved in a dramatic shootout with San Francisco Bay Area transit police on Friday, injuring the suspect and the officer, before a body was found inside a truck connected with the man.

Investigators found a man's body inside a U-Haul truck that officers saw being pushed by 27-year-old Charles Goetting on Friday morning, a San Francisco Bay Area transit spokeswoman said.

Earlier Friday, spokeswoman Denisse Gonzalez said officers approached Goetting in a parking area at the Hayward station about 11:15 a.m. because they thought he was acting suspiciously. As the officers tried to identify Goetting, he ran, turned and shot at the officers in pursuit, Gonzalez said.

One of the officers was shot in the arm, and was later treated and released from a hospital. Goetting was shot by a second officer, underwent surgery and was in stable condition Friday night.

Mauricio Palma, 15, who had just opened a new drone for Christmas, said he and his father ran out when they heard gunshots and saw two officers struggling to handcuff a man.

One of the officers was bleeding from his upper arm, Palma told the Oakland Tribune.

"There was a lot of blood," he said. "He was kind of woozy."

Palma said he advised the officer to put pressure on the wound and helped him up before a police car took him away.

The identity of the officers involved in the shooting was not released.