A homeless man who allegedly robbed a Florida bank and then gave away some of his loot to passengers on a public bus was expected to be arraigned in Tampa on Friday, authorities said.

Elmer McGuirt, 27, gave a note to a teller at a Wachovia Bank on Thursday demanding money and left with an undisclosed amount of cash, the Hillsborough County Sheriff's Office said in a statement.

Witnesses told deputies McGuirt then boarded a bus and began giving some of the money to his fellow passengers. Deputies contacted the driver, who stopped the bus, claiming there was a mechanical problem. When McGuirt got off the bus with the other passengers, he was arrested and charged with robbery.

Deputies recovered some money from the passengers as well as McGuirt, who had stuffed cash in his pants.