A Hingham police officer has been charged with stealing nearly $500 in gasoline from the town to fill up his own car, the department said Monday. Officer Thomas Cadigan, 61, a 34-year veteran of the Police Department, was charged in Wareham District Court Monday with nine counts of larceny. He has resigned and paid the town for the gas. “I think anybody that’s going to commit any crime, whether they be town employees or otherwise, would know if they get caught, they will be charged,” said Police Chief Michael Peraino. Cadigan admitted to sufficient facts. The case was continued without finding for six months, and Cadigan was put on probation.